Error when running example
See original GitHub issueWhen I try the example on readme:
import tensorflow as tf
import tf_encrypted as tfe
@tfe.local_computation('input-provider')
def provide_input():
# normal TensorFlow operations can be run locally
# as part of defining a private input, in this
# case on the machine of the input provider
return tf.ones(shape=(5, 10))
# define inputs
w = tfe.define_private_variable(tf.ones(shape=(10,10)))
x = provide_input()
# define computation
y = tfe.matmul(x, w)
with tfe.Session() as sess:
# initialize variables
sess.run(tfe.global_variables_initializer())
# reveal result
result = sess.run(y.reveal())
Found attached error:
AttributeError: module 'tf_encrypted' has no attribute 'local_computation'
I installed tf_encrypted by pip3
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
devtools::check() Error when checking examples
I'm getting an error which seems wrong when running check(), not sure how to fix this or if it's a bug? The error...
Read more >Error running example B1 - Getting Started - Geant4 Forum
I am brand new to Geant4. Attempting to run example B1 run1.mac results in a fatal exception and core dump with the following...
Read more >Error running example Reapp project - Stack Overflow
The answer is essentially that the GitHub project is broken, so it's not just my environment... I was doing everything correctly.
Read more >1E: Errors | Computer Science Circles - University of Waterloo
A run-time error happens when Python understands what you are saying, but runs into ... Here is an example comparing a run-time error...
Read more >Error running example · Issue #58 · vistalab/PRFmodel - GitHub
I am getting an error when trying to run the prfsynth image in the example. I am wondering if i need install a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
A
pip install -U tf-encrypted
should help then! Let us know if it doesn’t and we’ll reopen this issue. Thanks for giving TF Encrypted a try! 🙌when I try to import “import tf_encrypted as tfe” it give me the following error, could anyone help me please
AttributeError: module ‘tensorflow’ has no attribute ‘ConfigProto’
i also tried to use "tf.compat.v1 tf.disable_v2_behavior() but it also doesn’t work