tf.lite.TocoConverter

Class TocoConverter

Aliases:

  • Class tf.contrib.lite.TocoConverter
  • Class tf.lite.TocoConverter

Defined in tensorflow/lite/python/lite.py.

Convert a TensorFlow model into output_format using TOCO.

This class has been deprecated. Please use lite.TFLiteConverter instead.

Methods

tf.lite.TocoConverter.from_frozen_graph

@classmethod
from_frozen_graph(
    cls,
    graph_def_file,
    input_arrays,
    output_arrays,
    input_shapes=None
)

Creates a TocoConverter class from a file containing a frozen graph. (deprecated)

tf.lite.TocoConverter.from_keras_model_file

@classmethod
from_keras_model_file(
    cls,
    model_file,
    input_arrays=None,
    input_shapes=None,
    output_arrays=None
)

Creates a TocoConverter class from a tf.keras model file. (deprecated)

tf.lite.TocoConverter.from_saved_model

@classmethod
from_saved_model(
    cls,
    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)

tf.lite.TocoConverter.from_session

@classmethod
from_session(
    cls,
    sess,
    input_tensors,
    output_tensors
)

Creates a TocoConverter class from a TensorFlow Session. (deprecated)