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

Tensorflow version problem #75

Open
eliashahbazi opened this issue May 26, 2020 · 2 comments
Open

Tensorflow version problem #75

eliashahbazi opened this issue May 26, 2020 · 2 comments

Comments

@eliashahbazi
Copy link

I got this error:

AttributeError: module 'tensorflow' has no attribute 'variable_scope'

I downgrade my tensorflow to 1.15 and tensorflow 1.0 but still got the same error.
Do you have a .py version of file for newer version ?

Best Regards

@mistery3
Copy link

mistery3 commented Sep 4, 2020

Maybe you can try to use tensorflow 1.9.0,the problem of 'variable_scope' would disappear

@wy9933
Copy link

wy9933 commented Nov 18, 2020

In tensorflow 2.2.0, you can change tf.variable_scopr() to tf.compat.v1.variable_scope()

and it seems that all "no attribute" error can be solved using this method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants