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 > 2.14 no longer supports tf.keras.__version__, causes error in notebook #175

Open
atmelino opened this issue Feb 11, 2024 · 0 comments
Labels

Comments

@atmelino
Copy link

atmelino commented Feb 11, 2024

I installed tensorflow per your instructions, and got version 2.15 with Ubuntu 22.04 in February 2024.
the notebook at
https://github.com/jeffheaton/t81_558_deep_learning/blob/master/install/tensorflow-install-march-2023.ipynb
gives the error
AttributeError: module 'tensorflow.keras' has no attribute 'version'
according to
https://stackoverflow.com/questions/46086030/how-to-check-which-version-of-keras-is-installed
this attribute no longer exists in tensorflow version > 2.13

I was able to resolve the issue by running
conda install tensorflow=2.1.0

Please note, I do not have the time availability to help with individual installation requests. If you've noticed something that needs to be changed in the installation instructions, please report what you think needs to be changed. Generally I rerun my installation instructions once a semester and make any adjustments needed at that point.

Describe the bug
A clear and concise description of what the bug is. If you have a general programming question, Stack Overflow is a better forum. Please only add issues specifically related to a problem with the code in this repository.

Expected behavior
A clear and concise description of what you expected to happen.

Which Notebook Contains this Issue
Please let me know which notebook contains the code for the issue you are reporting. (e.g. https://github.com/jeffheaton/t81_558_deep_learning/blob/master/t81_558_class_01_1_overview.ipynb)

@atmelino atmelino added the bug label Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant