-
Notifications
You must be signed in to change notification settings - Fork 2k
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: 'Model' object has no attribute '_get_distribution_strategy' #1239
Comments
you can also remove the tensorboard callback for now. |
Will the training weights be saved if the callback is removed? |
Yes they will be. Only thing you lose is the usage of Tensorboard. ps. you can also use |
It is a problem with |
i solved it by |
'--tensorboard-dir ""' is not an internal or external command, nor is it a runnable program or batch files.@hgaiser |
It's a problem with keras and tensorflow. Tensorflow made some changes that didn't work when using keras, only works when using tensorflow.keras. tensorflow/tensorflow#34870 got merged so this should be automatically fixed with a new tensorflow release. |
This issue has been automatically marked as stale due to the lack of recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Did you try import from tensorflow.keras instead of directly from keras? |
It's the same for me. Both |
Tensorflow just released version 2.2, this should fix this issue. |
The issue persists :( |
@DarthAmk97 Use the monkeypatch solution ,it works for me. |
@SalahAdDin can you provide a link to or any documentation of that solution? |
@TimNagle-McNaughton This one. |
oh. Sadly that doesn't actually fix the functionality, just removes the functionality and the error. Thanks |
@TimNagle-McNaughton it is related to |
I am trying to train model in Google Colab using tensorflow 2.x bundle package for Colab and Getting Error as mention Below:
AttributeError:'Model' object has no attribute _get_distribution_strategy'
The text was updated successfully, but these errors were encountered: