/external/tensorflow/tensorflow/lite/python/optimize/ |
D | calibrator_test.py | 35 model_path = resource_loader.get_path_to_datafile( 37 float_model = open(model_path, 'rb').read() 58 model_path = resource_loader.get_path_to_datafile( 60 float_model = open(model_path, 'rb').read() 76 model_path = resource_loader.get_path_to_datafile( 78 float_model = open(model_path, 'rb').read() 91 model_path = resource_loader.get_path_to_datafile( 93 with open(model_path, 'rb') as fp: 114 model_path = resource_loader.get_path_to_datafile( 116 float_model = open(model_path, 'rb').read() [all …]
|
/external/tensorflow/tensorflow/lite/python/ |
D | interpreter_test.py | 52 model_path=resource_loader.get_path_to_datafile( 60 model_path=resource_loader.get_path_to_datafile( 71 model_path=resource_loader.get_path_to_datafile( 77 model_path=resource_loader.get_path_to_datafile( 93 model_path=resource_loader.get_path_to_datafile( 101 model_path=resource_loader.get_path_to_datafile( 109 model_path=resource_loader.get_path_to_datafile( 122 model_path=resource_loader.get_path_to_datafile( 155 model_path=resource_loader.get_path_to_datafile( 171 model_path = resource_loader.get_path_to_datafile( [all …]
|
D | analyzer_test.py | 33 model_path = resource_loader.get_path_to_datafile('../testdata/add.bin') 36 analyzer.ModelAnalyzer.analyze(model_path=model_path) 44 model_path = resource_loader.get_path_to_datafile('../testdata/add.bin') 48 model_path=model_path, experimental_use_mlir=True) 65 model_path = resource_loader.get_path_to_datafile( 70 model_path=model_path, experimental_use_mlir=True) 118 model_path = resource_loader.get_path_to_datafile( 123 model_path=model_path, gpu_compatibility=True)
|
D | test_util_test.py | 27 model_path = resource_loader.get_path_to_datafile('../testdata/add.bin') 28 op_set = tflite_test_util.get_ops_list(gfile.GFile(model_path, 'rb').read()) 32 model_path = resource_loader.get_path_to_datafile( 34 op_set = tflite_test_util.get_ops_list(gfile.GFile(model_path, 'rb').read())
|
D | analyzer.py | 64 def analyze(model_path=None, argument 87 if not model_path and not model_content: 89 if model_path: 91 tflite_model = model_path
|
D | metrics_nonportable.py | 71 model_path: Optional[Text] = None) -> None: 73 if model_hash and not model_path or not model_hash and model_path:
|
D | interpreter.py | 397 model_path=None, argument 447 if model_path and not model_content: 456 model_path, op_resolver_id, custom_op_registerers_by_name, 459 raise ValueError('Failed to open {}'.format(model_path)) 460 elif model_content and not model_path: 475 elif not model_content and not model_path:
|
/external/tensorflow/tensorflow/lite/delegates/gpu/cl/testing/ |
D | run_performance_profiling.sh | 31 model_path="" 37 -m | --model_path) 39 model_path=$1 57 if [ "$model_path" = "" ] 80 ./bazel-bin/"$SHELL_DIR"/"$BINARY_NAME" "$model_path" 85 model_name=${model_path##*/} # finds last token after '/' 91 ADB push "$model_path" "$OPENCL_DIR"
|
D | run_delegate_testing.sh | 26 model_path="" 32 -m | --model_path) 34 model_path=$1 52 if [ "$model_path" = "" ] 75 ./bazel-bin/"$SHELL_DIR"/"$BINARY_NAME" "$model_path" 79 model_name=${model_path##*/} # finds last token after '/' 85 ADB push "$model_path" "$OPENCL_DIR"
|
D | run_internal_api_samples.sh | 25 model_path="" 31 -m | --model_path) 33 model_path=$1 51 if [ "$model_path" = "" ] 74 ./bazel-bin/"$SHELL_DIR"/"$BINARY_NAME" "$model_path" 78 model_name=${model_path##*/} # finds last token after '/' 84 ADB push "$model_path" "$OPENCL_DIR"
|
/external/ComputeLibrary/python/scripts/utils/ |
D | model_identification.py | 26 def is_tflite_model(model_path): argument 41 with open(model_path, "rb") as f: 52 def identify_model_type(model_path): argument 66 if not os.path.exists(model_path): 70 if is_tflite_model(model_path):
|
/external/armnn/delegate/python/test/ |
D | utils.py | 10 model_path = os.path.join(test_data_folder, 'mock_model.tflite') 11 interpreter = tflite.Interpreter(model_path=model_path, 27 model_path = os.path.join(test_data_folder, model_filename) 28 interpreter = tflite.Interpreter(model_path=model_path,
|
/external/tensorflow/tensorflow/compiler/mlir/lite/experimental/tac/ |
D | tac.py | 20 def run_tac(model_path, targets, output_path): argument 37 if not model_path: 46 return _pywrap_tac_wrapper.run_tac(model_path, targets, output_path)
|
/external/tensorflow/tensorflow/lite/tools/optimize/python/ |
D | modify_model_interface_lib_test.py | 71 initial_interpreter = tf.lite.Interpreter(model_path=initial_file) 73 final_interpreter = tf.lite.Interpreter(model_path=final_file) 108 initial_interpreter = tf.lite.Interpreter(model_path=initial_file) 110 final_interpreter = tf.lite.Interpreter(model_path=final_file) 143 initial_interpreter = tf.lite.Interpreter(model_path=initial_file) 145 final_interpreter = tf.lite.Interpreter(model_path=final_file)
|
/external/armnn/python/pyarmnn/examples/tests/ |
D | test_network_executor.py | 15 model_path = os.path.join(test_data_folder, "ssd_mobilenet_v1.tflite") 18 executor = network_executor.ArmnnNetworkExecutor(model_path, backends) 21 … executor = network_executor_tflite.TFLiteNetworkExecutor(model_path, backends, delegate_path)
|
/external/tensorflow/tensorflow/lite/experimental/acceleration/mini_benchmark/ |
D | validator_runner_entrypoint.cc | 44 MinibenchmarkStatus RunValidator(absl::string_view model_path, in RunValidator() argument 68 CreateModelLoaderFromPath(model_path); in RunValidator() 88 const std::string model_path = argv[3]; in Java_org_tensorflow_lite_acceleration_validation_entrypoint() local 128 RunValidator(model_path, nnapi_sl_path, tflite_settings, results); in Java_org_tensorflow_lite_acceleration_validation_entrypoint()
|
D | copy_associated_files.py | 41 def main(model_path, associated_files_path, output_path): argument 42 with open(model_path, 'rb') as input_file:
|
D | mini_benchmark_test.cc | 70 void SetupBenchmark(proto::Delegate delegate, const std::string& model_path, in SetupBenchmark() argument 82 file->set_filename(model_path); in SetupBenchmark() 106 void TriggerBenchmark(proto::Delegate delegate, const std::string& model_path, in TriggerBenchmark() argument 109 SetupBenchmark(delegate, model_path, reset_storage, nnapi_sl); in TriggerBenchmark()
|
/external/tensorflow/tensorflow/lite/python/metrics/ |
D | metrics_nonportable.py | 70 model_path: Optional[Text] = None) -> None: 72 if model_hash and not model_path or not model_hash and model_path:
|
/external/tensorflow/tensorflow/lite/python/analyzer_wrapper/ |
D | analyzer_wrapper.cc | 24 [](const std::string& model_path, bool input_is_filepath, in PYBIND11_MODULE() 26 return ::tflite::model_analyzer(model_path, input_is_filepath, in PYBIND11_MODULE()
|
/external/tflite-support/tensorflow_lite_support/examples/task/text/desktop/ |
D | BUILD | 12 # --model_path=/path/to/model.tflite \ 32 # --model_path=/path/to/model.tflite \ 52 # --model_path=/path/to/model.tflite \
|
/external/tensorflow/tensorflow/lite/kernels/ |
D | conv_mem_test.cc | 29 void TestMemoryThreshold(const std::string& model_path, in TestMemoryThreshold() argument 44 auto model = FlatBufferModel::BuildFromFile(model_path.c_str()); in TestMemoryThreshold()
|
/external/tensorflow/tensorflow/lite/python/interpreter_wrapper/ |
D | interpreter_wrapper_pybind11.cc | 39 [](const std::string& model_path, int op_resolver_id, in PYBIND11_MODULE() 44 model_path.c_str(), op_resolver_id, registerers, &error, in PYBIND11_MODULE() 53 [](const std::string& model_path, int op_resolver_id, in PYBIND11_MODULE() argument 59 model_path.c_str(), op_resolver_id, registerers_by_name, in PYBIND11_MODULE()
|
/external/armnn/samples/ImageClassification/ |
D | run_classifier.py | 98 def load_tf_model(model_path: Path, armnn_delegate: tflite.Delegate): 109 model_path=model_path.as_posix(), experimental_delegates=[armnn_delegate]
|
/external/tflite-support/tensorflow_lite_support/cc/task/text/nlclassifier/ |
D | bert_nl_classifier_c_api.cc | 36 BertNLClassifier* BertNLClassifierFromFile(const char* model_path) { in BertNLClassifierFromFile() argument 38 BertNLClassifierCPP::CreateFromFile(std::string(model_path)); in BertNLClassifierFromFile()
|