Wsl2 tf2.11 keras optimizer fail

for wsl2 tf==2.11, optimizer=tf.keras.optimizers.legacy.Adam() works


NOT optimizer=“adam”

NOR optimizer=tf.keras.optimizers.Adam()

is there a new way to call the new optimizers or does the paths to CUDA in the new keras optimizers need correction?

Hi @Steven_Cohen, In v2.11 and later, tf.keras.optimizers.Optimizer points to a new base class implementation. So it works with tf.keras.optimizers.legacy.Optimizer.For more details please refer to this documentationThank You.