Home
last modified time | relevance | path

Searched refs:model_content (Results 1 – 25 of 39) sorted by relevance

12

/external/tensorflow/tensorflow/lite/python/optimize/
Dcalibrator.py34 def add_intermediate_tensors(model_content): argument
36 return _calibration_wrapper.AddIntermediateTensors(model_content)
46 model_content, argument
61 if not model_content:
70 model_content, custom_op_registerers_by_name,
72 self._model_content = model_content
101 self._interpreter = Interpreter(model_content=self._model_content)
108 self._interpreter = Interpreter(model_content=self._model_content)
/external/tensorflow/tensorflow/lite/tools/
Dverifier_internal_test.cc175 std::string model_content(reinterpret_cast<char*>(builder.GetBufferPointer()), in TEST()
177 for (size_t i = 0; i < model_content.size(); i++) { in TEST()
178 model_content[i] = (model_content[i] + 137) % 255; in TEST()
180 model_content.data(), model_content.size())) in TEST()
Dverifier_test.cc277 std::string model_content(reinterpret_cast<char*>(builder.GetBufferPointer()), in TEST()
279 for (size_t i = 0; i < model_content.size(); i++) { in TEST()
280 model_content[i] = (model_content[i] + 137) % 255; in TEST()
281 EXPECT_FALSE(Verify(model_content.data(), model_content.size(), in TEST()
/external/tensorflow/tensorflow/lite/python/
Danalyzer.py65 model_content=None, argument
87 if not model_path and not model_content:
95 tflite_model = model_content
Dlite_test.py167 interpreter = Interpreter(model_content=tflite_model)
241 interpreter = Interpreter(model_content=tflite_model)
275 interpreter = Interpreter(model_content=tflite_model)
305 interpreter = Interpreter(model_content=tflite_model)
381 interpreter = Interpreter(model_content=quantized_tflite_model)
423 interpreter = Interpreter(model_content=quantized_tflite_model)
445 interpreter = Interpreter(model_content=tflite_model)
478 interpreter = Interpreter(model_content=tflite_model)
525 interpreter = Interpreter(model_content=tflite_model)
581 interpreter = Interpreter(model_content=tflite_model)
[all …]
Danalyzer_test.py88 analyzer.ModelAnalyzer.analyze(model_content=fb_model)
107 model_content=fb_model, experimental_use_mlir=True)
144 model_content=fb_model, gpu_compatibility=True)
181 analyzer.ModelAnalyzer.analyze(model_content=fb_model)
204 analyzer.ModelAnalyzer.analyze(model_content=fb_model)
222 analyzer.ModelAnalyzer.analyze(model_content=fb_model)
Dlite_flex_test.py65 interpreter = Interpreter(model_content=tflite_model)
112 interpreter = Interpreter(model_content=tflite_model)
148 interpreter = Interpreter(model_content=tflite_model)
191 interpreter = Interpreter(model_content=tflite_model)
273 interpreter = Interpreter(model_content=tflite_model)
318 interpreter = Interpreter(model_content=tflite_model)
354 interpreter = Interpreter(model_content=tflite_model)
382 interpreter = Interpreter(model_content=tflite_model)
428 interpreter = Interpreter(model_content=tflite_model)
Dinterpreter.py398 model_content=None, argument
447 if model_path and not model_content:
460 elif model_content and not model_path:
470 self._model_content = model_content
473 model_content, op_resolver_id, custom_op_registerers_by_name,
475 elif not model_content and not model_path:
Dlite_v2_test.py156 interpreter = tf.lite.Interpreter(model_content=tflite_model)
219 interpreter = Interpreter(model_content=tflite_model)
321 interpreter = Interpreter(model_content=quantized_tflite_model)
381 model_content=quantized_model,
404 model_content=quantized_model,
468 interpreter = Interpreter(model_content=quantized_tflite_model)
529 interpreter = Interpreter(model_content=quantized_tflite_model)
553 interpreter = Interpreter(model_content=tflite_model)
586 interpreter = Interpreter(model_content=tflite_model)
603 interpreter = Interpreter(model_content=tflite_model)
[all …]
Dinterpreter_test.py176 interpreter = interpreter_wrapper.Interpreter(model_content=data)
322 interpreter_wrapper.Interpreter(model_content=b'garbage')
340 interpreter_wrapper.Interpreter(model_path=None, model_content=None)
368 interpreter = tf.lite.Interpreter(model_content=model)
Dlite_v2_test_util.py51 interpreter = Interpreter(model_content=tflite_model)
85 interpreter = Interpreter(model_content=tflite_model)
Dutil_test.py85 interpreter = tf.lite.Interpreter(model_content=tflite_model)
339 interpreter = tf.lite.Interpreter(model_content=model)
413 interpreter = tf.lite.Interpreter(model_content=modified_model)
/external/tflite-support/tensorflow_lite_support/custom_ops/kernel/
Dwhitespace_tokenizer_test.py74 model_content=model,
100 model_content=model,
126 model_content=model,
149 interpreter = interpreter_wrapper.Interpreter(model_content=model)
Dngrams_test.py119 model_content=model, custom_op_registerers=['AddNgramsCustomOp'])
139 model_content=model, custom_op_registerers=['AddNgramsCustomOp'])
158 model_content=model, custom_op_registerers=['AddNgramsCustomOp'])
189 model_content=model, custom_op_registerers=['AddNgramsCustomOp'])
219 model_content=model, custom_op_registerers=['AddNgramsCustomOp'])
243 interpreter = interpreter_wrapper.Interpreter(model_content=model)
/external/tensorflow/tensorflow/lite/g3doc/guide/
Dmodel_analyzer.ipynb86 " model_content=None,\n",
123 "tf.lite.experimental.Analyzer.analyze(model_content=fb_model)\n"
148 "tf.lite.experimental.Analyzer.analyze(model_content=fb_model)"
199 "tf.lite.experimental.Analyzer.analyze(model_content=fb_model, gpu_compatibility=True)"
232 "tf.lite.experimental.Analyzer.analyze(model_content=fb_model, gpu_compatibility=True)"
Dsignatures.ipynb235 "interpreter = tf.lite.Interpreter(model_content=tflite_model)\n",
273 "interpreter = tf.lite.Interpreter(model_content=tflite_model)\n",
311 "interpreter = tf.lite.Interpreter(model_content=tflite_model)\n",
430 "interpreter = tf.lite.Interpreter(model_content=tflite_model)\n",
/external/tflite-support/tensorflow_lite_support/custom_ops/python/
Dsentencepiece_tokenizer_test.py130 model_content=tflite_model,
173 model_content=tflite_model,
211 model_content=tflite_model,
Dragged_tensor_to_tensor_test.py42 model_content=tflite_model,
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.lite.experimental.-analyzer.pbtxt10 …argspec: "args=[\'model_path\', \'model_content\', \'gpu_compatibility\'], varargs=None, keywords=…
Dtensorflow.lite.-interpreter.pbtxt7 …argspec: "args=[\'self\', \'model_path\', \'model_content\', \'experimental_delegates\', \'num_thr…
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.lite.experimental.-analyzer.pbtxt10 …argspec: "args=[\'model_path\', \'model_content\', \'gpu_compatibility\'], varargs=None, keywords=…
/external/tensorflow/tensorflow/python/kernel_tests/signal/
Dtest_util.py82 the_interpreter = interpreter.Interpreter(model_content=tflite_model)
/external/tensorflow/tensorflow/lite/testing/op_tests/
Dgelu.py31 interpreter = tf.lite.Interpreter(model_content=tflite_model_binary)
Dhardswish.py33 interpreter = tf.lite.Interpreter(model_content=tflite_model_binary)
Ddynamic_update_slice.py32 interpreter = tf.lite.Interpreter(model_content=tflite_model_binary)

12