tensorflow/lite/g3doc/models/convert/api_updates.md
This page provides information about updates made to the
tf.lite.TFLiteConverter Python API in TensorFlow 2.x.
Note: If any of the changes raise concerns, please file a GitHub issue.
TensorFlow 2.3
inference_input_type and
inference_output_type attributes. Refer to this
example usage.TensorFlow 2.2
TensorFlow 2.0 vs TensorFlow 1.x
target_ops attribute to target_spec.supported_opsinference_type, quantized_input_stats,
post_training_quantize, default_ranges_stats,
reorder_across_fake_quant, change_concat_input_ranges,
get_input_arrays(). Instead,
quantize aware training
is supported through the tf.keras API and
post training quantization
uses fewer attributes.output_format, dump_graphviz_dir,
dump_graphviz_video. Instead, the recommended approach for
visualizing a TensorFlow Lite model is to use
visualize.py.drop_control_dependency, as frozen graphs are
unsupported in TensorFlow 2.x.tf.lite.toco_convert and
tf.lite.TocoConvertertf.lite.OpHint and
tf.lite.constants (the tf.lite.constants.* types have been mapped to
tf.* TensorFlow data types, to reduce duplication)