optuna/optuna-examples

Update tensorflow examples to support `tensorflow>=2.11.0`

toshihikoyanase opened this issue · 1 comments

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:

This issue has not seen any recent activity.