Home
last modified time | relevance | path

Searched refs:tflite_model (Results 1 – 23 of 23) sorted by relevance

/external/tensorflow/tensorflow/lite/python/
Dlite_test.py96 tflite_model = converter.convert()
97 self.assertTrue(tflite_model)
100 interpreter = Interpreter(model_content=tflite_model)
125 tflite_model = converter.convert()
126 self.assertTrue(tflite_model)
129 interpreter = Interpreter(model_content=tflite_model)
163 tflite_model = converter.convert()
164 self.assertTrue(tflite_model)
167 interpreter = Interpreter(model_content=tflite_model)
222 tflite_model = converter.convert()
[all …]
Dlite_v2_test.py40 def _evaluateTFLiteModel(self, tflite_model, input_data): argument
42 interpreter = Interpreter(model_content=tflite_model)
75 tflite_model = converter.convert()
79 actual_value = self._evaluateTFLiteModel(tflite_model, [input_data])
93 tflite_model = converter.convert()
97 actual_value = self._evaluateTFLiteModel(tflite_model, [input_data])
116 tflite_model = converter.convert()
120 actual_value = self._evaluateTFLiteModel(tflite_model, [input_data])
141 tflite_model = converter.convert()
145 actual_value = self._evaluateTFLiteModel(tflite_model, [input_data])
[all …]
Dlite_flex_test.py43 tflite_model = converter.convert()
44 self.assertTrue(tflite_model)
48 interpreter = Interpreter(model_content=tflite_model)
Dconvert_test.py48 tflite_model = convert.toco_convert(sess.graph_def, [in_tensor],
50 self.assertTrue(tflite_model)
76 tflite_model = convert.toco_convert(
80 self.assertTrue(tflite_model)
103 tflite_model = convert.toco_convert_graph_def(
106 self.assertTrue(tflite_model)
109 interpreter = Interpreter(model_content=tflite_model)
137 tflite_model = convert.toco_convert_graph_def(
143 self.assertTrue(tflite_model)
146 interpreter = Interpreter(model_content=tflite_model)
/external/tensorflow/tensorflow/lite/testing/model_coverage/
Dmodel_coverage_lib.py91 def _generate_random_input_data(tflite_model, seed=None): argument
101 interpreter = _lite.Interpreter(model_content=tflite_model)
114 def _evaluate_tflite_model(tflite_model, input_data): argument
124 interpreter = _lite.Interpreter(model_content=tflite_model)
207 def compare_models(tflite_model, tf_eval_func, input_data=None, tolerance=5): argument
220 input_data = _generate_random_input_data(tflite_model)
222 tflite_results = _evaluate_tflite_model(tflite_model, input_data)
227 def compare_models_v2(tflite_model, concrete_func, input_data=None, argument
241 input_data = _generate_random_input_data(tflite_model)
248 tflite_results = _evaluate_tflite_model(tflite_model, input_data)
[all …]
/external/tensorflow/tensorflow/lite/g3doc/convert/
Dpython_api.md55 tflite_model = converter.convert()
56 open("converted_model.tflite", "wb").write(tflite_model)
79 tflite_model = converter.convert()
80 open("converted_model.tflite", "wb").write(tflite_model)
92 tflite_model = converter.convert()
93 open("converted_model.tflite", "wb").write(tflite_model)
111 tflite_model = converter.convert()
112 open("converted_model.tflite", "wb").write(tflite_model)
143 tflite_model = converter.convert()
144 open("converted_model.tflite", "wb").write(tflite_model)
[all …]
Dquantization.md35 tflite_model = converter.convert()
/external/tensorflow/tensorflow/lite/testing/
Dtflite_diff_flags.h30 string tflite_model; in ParseTfliteDiffFlags() member
42 tensorflow::Flag("tflite_model", &values.tflite_model, in ParseTfliteDiffFlags()
68 } else if (values.tensorflow_model.empty() || values.tflite_model.empty() || in ParseTfliteDiffFlags()
79 values.tflite_model, in ParseTfliteDiffFlags()
Dtflite_diff_util.cc31 tflite_stream, options.tensorflow_model, options.tflite_model, in RunDiffTest()
37 tflite_driver.LoadModel(options.tflite_model); in RunDiffTest()
Dtflite_diff_util.h30 string tflite_model; member
DBUILD365 "--tflite_model=third_party/tensorflow/lite/testdata/multi_add.bin",
/external/tensorflow/tensorflow/lite/testing/kernel_test/
Dutil.h32 string tflite_model; member
48 tensorflow::Flag("tflite_model", &options.tflite_model, in ParseTfliteKernelTestFlags()
72 TF_LITE_ENSURE_STATUS(input_generator.LoadModel(options.tflite_model)); in RunKernelTest()
80 runner->LoadModel(options.tflite_model); in RunKernelTest()
Dutil_test.cc32 options.tflite_model = "tensorflow/lite/testdata/add.bin"; in TEST()
/external/tensorflow/tensorflow/lite/tools/optimize/calibration/
Dcalibrator.cc263 auto tflite_model = model.GetModel(); in BuildLoggingInterpreter() local
264 auto subgraphs = tflite_model->subgraphs(); in BuildLoggingInterpreter()
265 auto tensor_buffers = tflite_model->buffers(); in BuildLoggingInterpreter()
281 auto operator_codes = tflite_model->operator_codes(); in BuildLoggingInterpreter()
/external/tensorflow/tensorflow/lite/python/optimize/
Dcalibration_wrapper.cc162 auto tflite_model = CreateMutableModel(*model_->GetModel()); in QuantizeModel() local
163 reader_->AddCalibrationToModel(tflite_model.get()); in QuantizeModel()
165 auto status = tflite::optimize::QuantizeModel(&builder, tflite_model.get(), in QuantizeModel()
/external/tensorflow/tensorflow/lite/g3doc/r2/convert/
Dpython_api.md41 tflite_model = converter.convert()
77 tflite_model = converter.convert()
104 tflite_model = converter.convert()
133 tflite_model = converter.convert()
136 interpreter = tf.lite.Interpreter(model_content=tflite_model)
/external/tensorflow/tensorflow/lite/g3doc/guide/
Dops_select.md62 tflite_model = converter.convert()
63 open("converted_model.tflite", "wb").write(tflite_model)
Dops_custom.md230 tflite_model = tf.lite.toco_convert(
/external/tensorflow/tensorflow/lite/tutorials/
Dpost_training_quant.ipynb256 "tflite_model = converter.convert()"
294 "tflite_model_file.write_bytes(tflite_model)"
/external/tensorflow/tensorflow/contrib/quantize/
DREADME.md99 --output_file=tflite_model.tflite \
/external/tensorflow/tensorflow/lite/experimental/examples/lstm/g3doc/
DREADME.md64 tflite_model = converter.convert() # You got a tflite model!
/external/libtextclassifier/actions/
Dactions_model.fbs31 tflite_model:[ubyte] (force_align: 16);
Dactions-suggestions.cc252 model_->tflite_model_spec()->tflite_model()); in ValidateAndInitialize()