This function is deprecated. Please use tf.lite.TFLiteConverter API instead.
Conversion can be customized by providing arguments that are forwarded to
build_model_flags and build_conversion_flags (see documentation for
details).
Args:
input_data: Input data (i.e. often sess.graph_def).
input_tensors: List of input tensors. Type and shape are computed using
foo.shape and foo.dtype.
output_tensors: List of output tensors (only .name is used from this).
*args: See build_model_flags and build_conversion_flags.
**kwargs: See build_model_flags and build_conversion_flags.
Returns
The converted TensorFlow Lite model in a bytes array.
[null,null,["Last updated 2024-04-26 UTC."],[],[],null,["# tf.compat.v1.lite.toco_convert\n\n\u003cbr /\u003e\n\n|------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.16.1/tensorflow/lite/python/convert.py#L1050-L1076) |\n\nConvert a TensorFlow GraphDef to TFLite. (deprecated) \n\n tf.compat.v1.lite.toco_convert(\n input_data, input_tensors, output_tensors, *args, **kwargs\n )\n\n| **Deprecated:** THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use [`lite.TFLiteConverter`](https://www.tensorflow.org/api_docs/python/tf/lite/TFLiteConverter) instead.\n\nThis function is deprecated. Please use [`tf.lite.TFLiteConverter`](../../../../tf/lite/TFLiteConverter) API instead.\nConversion can be customized by providing arguments that are forwarded to\n`build_model_flags` and `build_conversion_flags` (see documentation for\ndetails).\nArgs:\ninput_data: Input data (i.e. often `sess.graph_def`).\ninput_tensors: List of input tensors. Type and shape are computed using\n`foo.shape` and `foo.dtype`.\noutput_tensors: List of output tensors (only .name is used from this).\n\\*args: See `build_model_flags` and `build_conversion_flags`.\n\\*\\*kwargs: See `build_model_flags` and `build_conversion_flags`.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| The converted TensorFlow Lite model in a bytes array. ||\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Raises ------ ||\n|---|---|\n| Defined in `convert`. ||\n\n\u003cbr /\u003e"]]