tf.compat.v1.lite.toco_convert | TensorFlow v2.16.1 (original) (raw)
tf.compat.v1.lite.toco_convert
Stay organized with collections Save and categorize content based on your preferences.
Convert a TensorFlow GraphDef to TFLite. (deprecated)
tf.compat.v1.lite.toco_convert(
input_data, input_tensors, output_tensors, *args, **kwargs
)
This function is deprecated. Please use tf.lite.TFLiteConverter API instead. Conversion can be customized by providing arguments that are forwarded tobuild_model_flags
and build_conversion_flags
(see documentation for details). Args: input_data: Input data (i.e. often sess.graph_def
). input_tensors: List of input tensors. Type and shape are computed usingfoo.shape
and foo.dtype
. output_tensors: List of output tensors (only .name is used from this). *args: See build_model_flags
and build_conversion_flags
. **kwargs: See build_model_flags
and build_conversion_flags
.
Returns |
---|
The converted TensorFlow Lite model in a bytes array. |
Raises |
---|
Defined in convert. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2024-04-26 UTC.