You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got this also. I encountered the same error on SWA, then found a collar notebook using MovingAverage before SWA and that has the same error in the collar runtime as I was getting on my laptop.
As the error message already states: with TF >= 2.11, you have to wrap an tf.keras.optimizers.legacy.Optimizer rather than tf.keras.optimizers.Optimizer (because the latter is now what used to be tf.keras.optimizers.experimental.Optimizer).
System information
Describe the bug
Using moving average of optimizers is no longer working and results in
Code to reproduce the issue
Compare e.g. the example notebook from the documentation:
https://www.tensorflow.org/addons/tutorials/average_optimizers_callback
Note: if you try it in collab, you have to install tf2.11 first.
Other info / logs
See also https://www.tensorflow.org/addons/api_docs/python/tfa/optimizers/MovingAverage
The text was updated successfully, but these errors were encountered: