This repository has been archived by the owner on Dec 4, 2024. It is now read-only.
Support optimizers from tf.keras.optimizers in Tensorflow 2.11+ #26
Labels
bug
Something isn't working
Describe the bug
Currently, if someone supplies an optimizer from
tf.keras.optimizers.Optimizer
in Tensorflow 2.11+ toSparkModel
, we get the following errorThis can be resolved by changing the optimizer import to
tf.keras.optimizers.legacy
. However, we should try to support both optimizers long term.To Reproduce
Go to
tests/integration/test_end_to_end.py
, and changefrom tensorflow.keras.optimizers.legacy import SGD
tofrom tensorflow.keras.optimizers import SGD
Expected behavior
We should not receive an error when supplying an optimizer imported from the optimizers package.
Desktop (please complete the following information):
Additional context
Relevant PR: #25
The text was updated successfully, but these errors were encountered: