Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module 'tensorflow.compat' has no attribute 'v1' #1

Open
michael-kotliar opened this issue Dec 10, 2019 · 2 comments
Open

module 'tensorflow.compat' has no attribute 'v1' #1

michael-kotliar opened this issue Dec 10, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@michael-kotliar
Copy link

michael-kotliar commented Dec 10, 2019

Hello, I was trying to run Leopard and got this error. Looks like a problem related to the different version of Tensorflow.

Traceback (most recent call last):
  File "code_1bp/predict.py", line 8, in <module>
    tf.compat.v1.logging.set_verbosity(tf.compat.v1.logging.ERROR) ## disable tf warning!
AttributeError: module 'tensorflow.compat' has no attribute 'v1'
@Hongyang449
Copy link
Contributor

Thank you for your feedback! What is the Tensorflow version on your machine? (We implemented and tested this code using Tensorflow 1.14.0, which did not report this error)

@michael-kotliar
Copy link
Author

Thank you. I'll try to update to the Tensorflow 1.14.0 or just remove that problematic line of code:)

@Hongyang449 Hongyang449 added the enhancement New feature or request label Dec 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants