Typically this function is used to convert from TensorFlow GraphDef to TFLite.
Conversion can be customized by providing arguments that are forwarded to
build_toco_convert_protos (see documentation for details). This function has
been deprecated. Please use lite.TFLiteConverter instead.
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_toco_convert_protos,
**kwargs
See build_toco_convert_protos.
Returns
The converted data. For example if TFLite was the destination, then
this will be a tflite flatbuffer in a bytes array.
[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# tf.lite.toco_convert\n\n\u003cbr /\u003e\n\n|----------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/lite/python/convert.py#L453-L480) |\n\nConvert a model using TOCO. (deprecated)\n\n#### View aliases\n\n\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n[`tf.compat.v1.lite.toco_convert`](/api_docs/python/tf/compat/v1/lite/toco_convert)\n\n\u003cbr /\u003e\n\n tf.lite.toco_convert(\n input_data, input_tensors, output_tensors, *args, **kwargs\n )\n\n| **Warning:** THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use [`lite.TFLiteConverter`](../../tf/lite/TFLiteConverter) instead.\n\nTypically this function is used to convert from TensorFlow GraphDef to TFLite.\nConversion can be customized by providing arguments that are forwarded to\n`build_toco_convert_protos` (see documentation for details). This function has\nbeen deprecated. Please use [`lite.TFLiteConverter`](../../tf/lite/TFLiteConverter) instead.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|------------------|---------------------------------------------------------------------------------------|\n| `input_data` | Input data (i.e. often `sess.graph_def`), |\n| `input_tensors` | List of input tensors. Type and shape are computed using `foo.shape` and `foo.dtype`. |\n| `output_tensors` | List of output tensors (only .name is used from this). |\n| `*args` | See `build_toco_convert_protos`, |\n| `**kwargs` | See `build_toco_convert_protos`. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| The converted data. For example if TFLite was the destination, then this will be a tflite flatbuffer 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 `build_toco_convert_protos`. ||\n\n\u003cbr /\u003e"]]