Repository navigation
2.4.0
2.4.0
Breaking changes
This PR switches the default TFLite backend from tf_converter to flatbuffer_direct and aligns the surrounding API, CLI, tests, helper scripts, and docs with that behavior.
What changed
- changed the default
tflite_backendinonnx2tf.convert()and the CLI toflatbuffer_direct - kept
tf_converteravailable as an explicit compatibility path - updated helper tooling and README examples to avoid relying on the old implicit SavedModel behavior
- clarified documentation so SavedModel-related flows now require explicit direct-export flags or an explicit
tf_converterselection - added regression coverage for the default-backend path without TensorFlow
- updated the migration guide to describe
flatbuffer_directas the current default - renamed the README supported-layers heading to make it clear that it refers to
tf_convertercoverage - bumped the package version/lockfile for the 2.4.0 change
Why this improves the feature
This makes the faster direct path the out-of-the-box experience, reduces accidental dependency on TensorFlow-backed conversion, and makes the remaining legacy path explicit. It also removes ambiguity in docs and tests around which backend is responsible for SavedModel generation.
Validation
pytest -q tests/test_optional_tensorflow.pypytest -q tests/test_tflite2sm_phase1.py -k "flatbuffer_direct_output_saved_model_validation or tflite_direct_input_validation or tflite_direct_input_new_conflict_validation or tflite_direct_input_rejects_mixed_onnx_and_tflite_input"python tests/test_model_convert.py --help
What's Changed
- Make flatbuffer_direct the default TFLite backend by @PINTO0309 in #925
Full Changelog: 2.3.19...2.4.0