tf.compat.v1.lite.toco_convert

View source on GitHub

Convert a model using TOCO. (deprecated)

tf.compat.v1.lite.toco_convert(
    input_data, input_tensors, output_tensors, *args, **kwargs
)

Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use lite.TFLiteConverter instead.

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:

Returns:

The converted data. For example if TFLite was the destination, then this will be a tflite flatbuffer in a bytes array.

Raises:

Defined in build_toco_convert_protos.