Optimizer don't have apply() method #20801
Labels
stat:awaiting response from contributor
type:support
User is asking for help / asking an implementation question. Stackoverflow would be better suited.
Environment:
Python 3.12.7
Tensorflow 2.16.1
Keras 3.8.0
Problem:
All optimizers from
tf.keras.optimizers
do not have a methodapply()
to write the train routine from scratch.But the docs states that it exists.
Possible solution
Need to use method
apply_gradients(zip(gradients, model_parameters))
The text was updated successfully, but these errors were encountered: