Update tensorflow examples to support `tensorflow>=2.11.0`
toshihikoyanase opened this issue · 1 comments
toshihikoyanase commented
Motivation
tensorflow==2.11.0
seems to have breaking changes and the current tensorflow examples do not work due to the following erro
% python tensorflow_eager_simple.py
...
ValueError: decay is deprecated in the new Keras optimizer, please check the docstring for valid arguments, or use the legacy optimizer, e.g., tf.keras.optimizers.legacy.RMSprop.
% python tensorflow_estimator_simple.py
...
ValueError: Please set your optimizer as an instance of `tf.keras.optimizers.legacy.Optimizer`, e.g., `tf.keras.optimizers.legacy.SGD`.Received optimizer type: <class 'keras.optimizers.optimizer_experimental.sgd.SGD'>.
#146 pinned tensorflow version as a workaround.
Description
Please update tensorflow examples to support tensorflow>=2.11.0
.
As shown in the following links, we have some choices of Optimizers. I'm not familiar with tensorflow, so could you explain why you select them in your PR, please?
Links:
- https://www.tensorflow.org/api_docs/python/tf/keras/optimizers/Optimizer
- https://www.tensorflow.org/api_docs/python/tf/keras/optimizers/legacy/RMSprop
- https://www.tensorflow.org/api_docs/python/tf/keras/optimizers/legacy/SGD
- https://www.tensorflow.org/api_docs/python/tf/keras/optimizers/experimental/RMSprop
- https://www.tensorflow.org/api_docs/python/tf/keras/optimizers/experimental/SGD
github-actions commented
This issue has not seen any recent activity.