Could not interpret optimizer identifier: <keras.src.optimizers.adam.Adam object #64250
Labels
comp:keras
Keras related issues
stat:awaiting response
Status - Awaiting response from author
type:docs-bug
Document issues
Issue type
Documentation Bug
Have you reproduced the bug with TensorFlow Nightly?
Yes
Source
source
TensorFlow version
2.16.1
Custom code
No
OS platform and distribution
No response
Mobile device
No response
Python version
No response
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current behavior?
Some days ago, I tried to run codes by using Google Colab from a tutorial of transfer learning with movinet without any error. Today, I tried to run codes by using Google Colab from the same tutorial and it produced error when I tried to compile the model.
`num_epochs = 2
loss_obj = tf.keras.losses.SparseCategoricalCrossentropy(from_logits=True)
optimizer = tf.keras.optimizers.Adam(learning_rate = 0.001)
model.compile(loss=loss_obj, optimizer=optimizer, metrics=['accuracy'])`
Standalone code to reproduce the issue
Relevant log output
The text was updated successfully, but these errors were encountered: