[null,null,["Last updated 2023-10-06 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.12.1/tensorflow/lite/python/lite.py#L2846-L2897) |\n\nConvert a TensorFlow model into `output_format`.\n\nThis class has been deprecated. Please use [`lite.TFLiteConverter`](https://www.tensorflow.org/lite/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.12.1/tensorflow/lite/python/lite.py#L2860-L2870) \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.12.1/tensorflow/lite/python/lite.py#L2887-L2897) \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.12.1/tensorflow/lite/python/lite.py#L2872-L2885) \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/lite/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.12.1/tensorflow/lite/python/lite.py#L2853-L2858) \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."]]