Home
last modified time | relevance | path

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

123

/external/tensorflow/tensorflow/lite/python/optimize/
Dcalibrator_test.py41 model_path = resource_loader.get_path_to_datafile(
43 float_model = open(model_path, 'rb').read()
64 model_path = resource_loader.get_path_to_datafile(
66 float_model = open(model_path, 'rb').read()
82 model_path = resource_loader.get_path_to_datafile(
84 float_model = open(model_path, 'rb').read()
97 model_path = resource_loader.get_path_to_datafile(
99 with open(model_path, 'rb') as fp:
120 model_path = resource_loader.get_path_to_datafile(
122 float_model = open(model_path, 'rb').read()
[all …]
/external/tensorflow/tensorflow/lite/micro/examples/magic_wand/train/
Dtrain.py70 model_path = os.path.join("./netmodels", "CNN")
72 if not os.path.exists(model_path):
73 os.makedirs(model_path)
75 return model, model_path
86 model_path = os.path.join("./netmodels", "LSTM")
88 if not os.path.exists(model_path):
89 os.makedirs(model_path)
90 return model, model_path
103 model, model_path = build_cnn(seq_length)
105 model, model_path = build_lstm(seq_length)
[all …]
/external/tensorflow/tensorflow/lite/python/
Dinterpreter_test.py47 model_path=resource_loader.get_path_to_datafile(
55 model_path=resource_loader.get_path_to_datafile(
66 model_path=resource_loader.get_path_to_datafile(
72 model_path=resource_loader.get_path_to_datafile(
88 model_path=resource_loader.get_path_to_datafile(
96 model_path=resource_loader.get_path_to_datafile(
102 model_path=resource_loader.get_path_to_datafile(
134 model_path=resource_loader.get_path_to_datafile(
150 model_path = resource_loader.get_path_to_datafile(
152 with io.open(model_path, 'rb') as model_file:
[all …]
Dtest_util_test.py31 model_path = resource_loader.get_path_to_datafile('../testdata/add.bin')
32 op_set = tflite_test_util.get_ops_list(gfile.GFile(model_path, 'rb').read())
36 model_path = resource_loader.get_path_to_datafile(
38 op_set = tflite_test_util.get_ops_list(gfile.GFile(model_path, 'rb').read())
Dinterpreter.py250 model_path=None, argument
272 if model_path and not model_content:
281 model_path, custom_op_registerers_by_name,
284 raise ValueError('Failed to open {}'.format(model_path))
285 elif model_content and not model_path:
300 elif not model_content and not model_path:
800 model_path=None, argument
822 model_path=model_path,
/external/tensorflow/tensorflow/lite/delegates/gpu/cl/testing/
Drun_internal_api_samples.sh25 model_path=""
31 -m | --model_path)
33 model_path=$1
51 if [ "$model_path" = "" ]
65 ./bazel-bin/"$SHELL_DIR"/"$BINARY_NAME" "$model_path"
69 model_name=${model_path##*/} # finds last token after '/'
75 ADB push "$model_path" "$OPENCL_DIR"
Drun_performance_profiling.sh31 model_path=""
37 -m | --model_path)
39 model_path=$1
57 if [ "$model_path" = "" ]
71 ./bazel-bin/"$SHELL_DIR"/"$BINARY_NAME" "$model_path"
75 model_name=${model_path##*/} # finds last token after '/'
81 ADB push "$model_path" "$OPENCL_DIR"
Drun_delegate_testing.sh26 model_path=""
32 -m | --model_path)
34 model_path=$1
52 if [ "$model_path" = "" ]
66 ./bazel-bin/"$SHELL_DIR"/"$BINARY_NAME" "$model_path"
70 model_name=${model_path##*/} # finds last token after '/'
76 ADB push "$model_path" "$OPENCL_DIR"
/external/tensorflow/tensorflow/lite/tools/optimize/python/
Dmodify_model_interface_lib_test.py76 initial_interpreter = tf.lite.Interpreter(model_path=initial_file)
78 final_interpreter = tf.lite.Interpreter(model_path=final_file)
113 initial_interpreter = tf.lite.Interpreter(model_path=initial_file)
115 final_interpreter = tf.lite.Interpreter(model_path=final_file)
148 initial_interpreter = tf.lite.Interpreter(model_path=initial_file)
150 final_interpreter = tf.lite.Interpreter(model_path=final_file)
/external/libaom/libaom/aom_dsp/
Dvmaf.c95 void aom_calc_vmaf(const char *model_path, const YV12_BUFFER_CONFIG *source, in aom_calc_vmaf() argument
106 /*user_data=*/&frames, (char *)model_path, in aom_calc_vmaf()
119 void *user_data, const char *model_path, in aom_calc_vmaf_multi_frame() argument
129 /*user_data=*/user_data, (char *)model_path, in aom_calc_vmaf_multi_frame()
Dvmaf.h17 void aom_calc_vmaf(const char *model_path, const YV12_BUFFER_CONFIG *source,
22 void *user_data, const char *model_path,
/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 \
DREADME.md28 --model_path=/tmp/mobilebert.tflite \
79 --model_path=/tmp/movie_review.tflite \
117 --model_path=/tmp/bert_movie_review.tflite \
/external/tensorflow/tensorflow/lite/python/interpreter_wrapper/
Dinterpreter_wrapper_pybind11.cc36 [](const std::string& model_path, in PYBIND11_MODULE()
40 model_path.c_str(), registerers, &error); in PYBIND11_MODULE()
47 [](const std::string& model_path, in PYBIND11_MODULE() argument
53 model_path.c_str(), registerers_by_name, registerers_by_func, in PYBIND11_MODULE()
Dinterpreter_wrapper.h54 const char* model_path, const std::vector<std::string>& registerers,
57 const char* model_path,
/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()
Dnl_classifier_c_api.cc38 const char* model_path, const NLClassifierOptions* options) { in NLClassifierFromFileAndOptions() argument
40 std::string(model_path), in NLClassifierFromFileAndOptions()
Dbert_nl_classifier_c_api.h48 extern BertNLClassifier* BertNLClassifierFromFile(const char* model_path);
/external/tensorflow/tensorflow/python/keras/layers/
Dmulti_head_attention_test.py301 model_path = self.get_temp_dir() + "/tmp_model"
302 keras.models.save_model(model, model_path, save_format="tf")
303 reloaded_model = keras.models.load_model(model_path)
321 model_path = self.get_temp_dir() + "/tmp_model"
322 keras.models.save_model(model, model_path, save_format=save_format)
323 reloaded_model = keras.models.load_model(model_path)
/external/tensorflow/tensorflow/python/keras/integration_test/
Dmulti_worker_tutorial_test.py144 def fn(model_path, checkpoint_dir): argument
167 write_model_path = write_filepath(model_path, task_type, task_id)
176 if not tf.io.gfile.exists(model_path):
182 loaded_model = tf.keras.models.load_model(model_path)
209 model_path = os.path.join(self.get_temp_dir(), 'model.tf')
216 args=(model_path, checkpoint_dir),
/external/tflite-support/tensorflow_lite_support/cc/task/text/qa/
Dbert_qa_c_api.cc34 BertQuestionAnswerer* BertQuestionAnswererFromFile(const char* model_path) { in BertQuestionAnswererFromFile() argument
36 BertQuestionAnswererCPP::CreateFromFile(std::string(model_path)); in BertQuestionAnswererFromFile()
/external/tensorflow/tensorflow/lite/tools/
Dgen_op_registration_test.cc28 void ReadOps(const string& model_path) { in ReadOps() argument
29 auto model = FlatBufferModel::BuildFromFile(model_path.data()); in ReadOps()
/external/tensorflow/tensorflow/lite/tools/optimize/
Dquantize_weights_test.cc42 auto model_path = tensorflow::io::JoinPath( in ReadTestModel() local
44 return FlatBufferModel::BuildFromFile(model_path.c_str()); in ReadTestModel()
48 auto model_path = tensorflow::io::JoinPath(*g_test_model_dir, in ReadSharedWeightsTestModel() local
50 return FlatBufferModel::BuildFromFile(model_path.c_str()); in ReadSharedWeightsTestModel()
54 auto model_path = tensorflow::io::JoinPath(*g_test_model_dir, in ReadGatherTestModel() local
56 return FlatBufferModel::BuildFromFile(model_path.c_str()); in ReadGatherTestModel()
60 auto model_path = in ReadCustomOpTestModel() local
62 return FlatBufferModel::BuildFromFile(model_path.c_str()); in ReadCustomOpTestModel()
/external/tensorflow/tensorflow/lite/
Dmodel_test.cc483 const auto model_path = in TEST() local
487 FlatBufferModel::BuildFromFile(model_path); in TEST()
504 const auto model_path = in TEST() local
508 FlatBufferModel::BuildFromFile(model_path); in TEST()
584 const auto model_path = in TEST() local
588 FlatBufferModel::BuildFromFile(model_path); in TEST()
/external/tflite-support/tensorflow_lite_support/examples/task/vision/desktop/
DREADME.md31 --model_path=/tmp/aiy_vision_classifier_birds_V1_3.tflite \
85 --model_path=/tmp/ssd_mobilenet_v1_1_metadata_1.tflite \
142 --model_path=/tmp/deeplabv3_1_metadata_1.tflite \

123