tf.compat.v1.lite.TocoConverter
Stay organized with collections
Save and categorize content based on your preferences.
Convert a TensorFlow model into output_format
using TOCO.
This class has been deprecated. Please use lite.TFLiteConverter
instead.
Methods
from_frozen_graph
View source
@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)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version.
Instructions for updating:
Use lite.TFLiteConverter.from_frozen_graph
instead.
from_keras_model_file
View source
@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)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version.
Instructions for updating:
Use lite.TFLiteConverter.from_keras_model_file
instead.
from_saved_model
View source
@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
View source
@classmethod
from_session (
sess , input_tensors , output_tensors
)
Creates a TocoConverter class from a TensorFlow Session. (deprecated)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version.
Instructions for updating:
Use lite.TFLiteConverter.from_session
instead.
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 2022-11-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-11-04 UTC."],[],[]]