Convert a TensorFlow model into output_format
using TOCO.
This class has been deprecated. Please use lite.TFLiteConverter
instead.
from_frozen_graph
@classmethod from_frozen_graph( graph_def_file, input_arrays, output_arrays, input_shapes=None )
Creates a TocoConverter class from a file containing a frozen graph. (deprecated)
from_keras_model_file
@classmethod from_keras_model_file( model_file, input_arrays=None, input_shapes=None, output_arrays=None )
Creates a TocoConverter class from a tf.keras model file. (deprecated)
from_saved_model
@classmethod from_saved_model( saved_model_dir, input_arrays=None, input_shapes=None, output_arrays=None, tag_set=None, signature_key=None )
Creates a TocoConverter class from a SavedModel. (deprecated)
from_session
@classmethod from_session( sess, input_tensors, output_tensors )
Creates a TocoConverter class from a TensorFlow Session. (deprecated)
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.4/api_docs/python/tf/compat/v1/lite/TocoConverter