[null,null,["Last updated 2024-04-26 UTC."],[],[],null,["# tf.compat.v1.lite.TocoConverter\n\n\u003cbr /\u003e\n\n|---------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.16.1/tensorflow/lite/python/lite.py#L3240-L3300) |\n\nConvert a TensorFlow model into `output_format`.\n\nThis class has been deprecated. Please use [`lite.TFLiteConverter`](https://www.tensorflow.org/api_docs/python/tf/lite/TFLiteConverter) instead.\n\nMethods\n-------\n\n### `from_frozen_graph`\n\n[View source](https://github.com/tensorflow/tensorflow/blob/v2.16.1/tensorflow/lite/python/lite.py#L3255-L3265) \n\n @classmethod\n from_frozen_graph(\n graph_def_file, input_arrays, output_arrays, input_shapes=None\n )\n\nCreates a TocoConverter class from a file containing a frozen graph. (deprecated)\n| **Deprecated:** THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use `lite.TFLiteConverter.from_frozen_graph` instead.\n\n### `from_keras_model_file`\n\n[View source](https://github.com/tensorflow/tensorflow/blob/v2.16.1/tensorflow/lite/python/lite.py#L3290-L3300) \n\n @classmethod\n from_keras_model_file(\n model_file, input_arrays=None, input_shapes=None, output_arrays=None\n )\n\nCreates a TocoConverter class from a tf.keras model file. (deprecated)\n| **Deprecated:** THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use `lite.TFLiteConverter.from_keras_model_file` instead.\n\n### `from_saved_model`\n\n[View source](https://github.com/tensorflow/tensorflow/blob/v2.16.1/tensorflow/lite/python/lite.py#L3267-L3288) \n\n @classmethod\n from_saved_model(\n saved_model_dir,\n input_arrays=None,\n input_shapes=None,\n output_arrays=None,\n tag_set=None,\n signature_key=None\n )\n\nCreates a TocoConverter class from a SavedModel. (deprecated)\n| **Deprecated:** THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use [`lite.TFLiteConverter.from_saved_model`](https://www.tensorflow.org/api_docs/python/tf/lite/TFLiteConverter#from_saved_model) instead.\n\n### `from_session`\n\n[View source](https://github.com/tensorflow/tensorflow/blob/v2.16.1/tensorflow/lite/python/lite.py#L3247-L3253) \n\n @classmethod\n from_session(\n sess, input_tensors, output_tensors\n )\n\nCreates a TocoConverter class from a TensorFlow Session. (deprecated)\n| **Deprecated:** THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use `lite.TFLiteConverter.from_session` instead."]]