tf.contrib.lite.toco_convert_protos( model_flags_str, toco_flags_str, input_data_str )
Defined in tensorflow/contrib/lite/python/lite.py
.
Convert input_data_str
according to model and toco parameters.
Unless you know what you are doing consider using the more friendly tf.contrib.lite.toco_convert
}.
model_flags_str
: Serialized proto describing model properties, see toco/model_flags.proto
.toco_flags_str
: Serialized proto describing conversion properties, see toco/toco_flags.proto
.input_data_str
: Input data in serialized form (e.g. a graphdef is common)Converted model in serialized form (e.g. a TFLITE model is common).
RuntimeError
: When conversion fails, an exception is raised with the error message embedded.
© 2018 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/api_docs/python/tf/contrib/lite/toco_convert_protos