-
Notifications
You must be signed in to change notification settings - Fork 130
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
AttributeError: module 'tensorflow' has no attribute 'get_default_graph' #26
Comments
When I run the Google Colab file, I happened this issue and even though I re-install tensorflow 2.0.0 or manually change from keras import to from tensorflow.keras import, this error still existed |
Change the tenslrflow version to the version mentioned in the github. 1.2 something. And it will work. |
so i reseted runtime and then changed tensorflow version with %tensorflow_version 1.12.0 but then i get another error while running model constructor: AttributeError Traceback (most recent call last) in () 7 frames /tensorflow-1.15.2/python3.6/tensorflow_core/python/util/module_wrapper.py in getattr(self, name) AttributeError: module 'tensorflow' has no attribute 'ops' |
This does not change tf version to 1.12.0. This magic only change between latest 1.x and 2.x versions. You should manually install 1.12.0 or 1.13.1. |
I solved this issue by using these command |
still gives this error
|
See this comment #32 (comment) |
The text was updated successfully, but these errors were encountered: