Home
last modified time | relevance | path

Searched refs:model_path (Results 1 – 25 of 107) sorted by relevance

12345

/external/tensorflow/tensorflow/lite/python/optimize/
Dcalibrator_test.py35 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/
Dinterpreter_test.py52 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 …]
Danalyzer_test.py33 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)
Dtest_util_test.py27 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())
Danalyzer.py64 def analyze(model_path=None, argument
87 if not model_path and not model_content:
89 if model_path:
91 tflite_model = model_path
Dmetrics_nonportable.py71 model_path: Optional[Text] = None) -> None:
73 if model_hash and not model_path or not model_hash and model_path:
Dinterpreter.py397 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/
Drun_performance_profiling.sh31 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"
Drun_delegate_testing.sh26 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"
Drun_internal_api_samples.sh25 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/
Dmodel_identification.py26 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/
Dutils.py10 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/
Dtac.py20 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/
Dmodify_model_interface_lib_test.py71 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/
Dtest_network_executor.py15 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/
Dvalidator_runner_entrypoint.cc44 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()
Dcopy_associated_files.py41 def main(model_path, associated_files_path, output_path): argument
42 with open(model_path, 'rb') as input_file:
Dmini_benchmark_test.cc70 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/
Dmetrics_nonportable.py70 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/
Danalyzer_wrapper.cc24 [](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/
DBUILD12 # --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/
Dconv_mem_test.cc29 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/
Dinterpreter_wrapper_pybind11.cc39 [](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/
Drun_classifier.py98 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/
Dbert_nl_classifier_c_api.cc36 BertNLClassifier* BertNLClassifierFromFile(const char* model_path) { in BertNLClassifierFromFile() argument
38 BertNLClassifierCPP::CreateFromFile(std::string(model_path)); in BertNLClassifierFromFile()

12345