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
fix: resolve TensorFlow keras lazy loader recursion error
Set TF_USE_LEGACY_KERAS=1 to force TensorFlow 2.19.0 to use
tf_keras instead of Keras 3.x if the environment has Keras 3.x
installed. This work around prevents TensorFlow's lazy loader
from infinitely recursing when trying to determine which
Keras version to use. See:
https://keras.io/getting_started/#tensorflow--keras-2-backwards-compatibility.
This fixes generate_test_models.py which was failing with:
"RecursionError: maximum recursion depth exceeded in comparison"
at line checking "if self._tfll_keras_version == 'keras_3'"
BUG=#3125
0 commit comments