Tensorflow.js Converter: Usage of save_format
when converting to graph model causes error on Keras 3
#8229
Labels
save_format
when converting to graph model causes error on Keras 3
#8229
System information
Describe the current behavior
tensorflow 2.16.1 requires keras>=3.0.0, but I think passing the
save_format
argument is a hard error in keras>=3.0.0 if the extension is not .h5/.hdf5/.keras (current code is using a .savedmodel).Describe the expected behavior
Avoid using
save_format
.Standalone code to reproduce the issue
then
tensorflowjs_converter --input_format=keras --output_format=tfjs_graph_model --quantize_uint8=* test.keras webmodel
Other info / logs
Setting the env var
export TF_USE_LEGACY_KERAS=1
avoids this problem.The text was updated successfully, but these errors were encountered: