Skip to content

Fix keras and tensorflow versions#4

Open
ste1ju wants to merge 1 commit intoclearml:masterfrom
ste1ju:master
Open

Fix keras and tensorflow versions#4
ste1ju wants to merge 1 commit intoclearml:masterfrom
ste1ju:master

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