/external/tensorflow/tensorflow/lite/python/ |
D | lite_test.py | 96 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 …]
|
D | lite_v2_test.py | 40 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 …]
|
D | lite_flex_test.py | 43 tflite_model = converter.convert() 44 self.assertTrue(tflite_model) 48 interpreter = Interpreter(model_content=tflite_model)
|
D | convert_test.py | 48 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/ |
D | model_coverage_lib.py | 91 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/ |
D | python_api.md | 55 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 …]
|
D | quantization.md | 35 tflite_model = converter.convert()
|
/external/tensorflow/tensorflow/lite/testing/ |
D | tflite_diff_flags.h | 30 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()
|
D | tflite_diff_util.cc | 31 tflite_stream, options.tensorflow_model, options.tflite_model, in RunDiffTest() 37 tflite_driver.LoadModel(options.tflite_model); in RunDiffTest()
|
D | tflite_diff_util.h | 30 string tflite_model; member
|
D | BUILD | 365 "--tflite_model=third_party/tensorflow/lite/testdata/multi_add.bin",
|
/external/tensorflow/tensorflow/lite/testing/kernel_test/ |
D | util.h | 32 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()
|
D | util_test.cc | 32 options.tflite_model = "tensorflow/lite/testdata/add.bin"; in TEST()
|
/external/tensorflow/tensorflow/lite/tools/optimize/calibration/ |
D | calibrator.cc | 263 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/ |
D | calibration_wrapper.cc | 162 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/ |
D | python_api.md | 41 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/ |
D | ops_select.md | 62 tflite_model = converter.convert() 63 open("converted_model.tflite", "wb").write(tflite_model)
|
D | ops_custom.md | 230 tflite_model = tf.lite.toco_convert(
|
/external/tensorflow/tensorflow/lite/tutorials/ |
D | post_training_quant.ipynb | 256 "tflite_model = converter.convert()" 294 "tflite_model_file.write_bytes(tflite_model)"
|
/external/tensorflow/tensorflow/contrib/quantize/ |
D | README.md | 99 --output_file=tflite_model.tflite \
|
/external/tensorflow/tensorflow/lite/experimental/examples/lstm/g3doc/ |
D | README.md | 64 tflite_model = converter.convert() # You got a tflite model!
|
/external/libtextclassifier/actions/ |
D | actions_model.fbs | 31 tflite_model:[ubyte] (force_align: 16);
|
D | actions-suggestions.cc | 252 model_->tflite_model_spec()->tflite_model()); in ValidateAndInitialize()
|