-
Notifications
You must be signed in to change notification settings - Fork 19.5k
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
Optimizer don't have apply() method #20801
Comments
@konstantin-frolov, thanks for reporting this. If you're trying to apply gradients to variable you can use |
@konstantin-frolov and @dhantule
|
The base I tried to run the guide you linked and it worked for me.
How did you produce this error? What were the imports and code beforehand?
|
This issue is stale because it has been open for 14 days with no activity. It will be closed if no further activity occurs. Thank you. |
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: