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

Fix keras and tensorflow versions #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ste1ju
Copy link

@ste1ju ste1ju commented Oct 20, 2021

Under the requirements, currently tensorflow 2.6 and keras 2.6 are used. This leads to the following error when executing the command from the basic tutorial for executing a code from a remote repository:

Traceback (most recent call last):
  File "webinar-0620/keras_mnist.py", line 48, in <module>
    y_train = keras.utils.to_categorical(y_train, args.num_classes)
AttributeError: module 'keras.utils' has no attribute 'to_categorical'

Fixing the versions to keras==2.4.0 and tensorflow==2.3.0 removes the issue, see here.

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

Successfully merging this pull request may close these issues.

1 participant