question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when running example

See original GitHub issue

When 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:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mortendahlcommented, Jul 30, 2019

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! 🙌

0reactions
paspularavindercommented, Mar 30, 2022

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found