Home
last modified time | relevance | path

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

12

/external/tensorflow/tensorflow/lite/python/optimize/
Dcalibrator_test.py31 model_path = resource_loader.get_path_to_datafile(
33 float_model = open(model_path, 'rb').read()
47 model_path = resource_loader.get_path_to_datafile(
49 float_model = open(model_path, 'rb').read()
67 model_path = resource_loader.get_path_to_datafile(
69 float_model = open(model_path, 'rb').read()
80 model_path = resource_loader.get_path_to_datafile(
82 float_model = open(model_path, 'rb').read()
94 model_path = resource_loader.get_path_to_datafile(
96 float_model = open(model_path, 'rb').read()
/external/tensorflow/tensorflow/lite/python/
Dinterpreter.py54 def __init__(self, model_path=None, model_content=None): argument
64 if model_path and not model_content:
67 model_path))
69 raise ValueError('Failed to open {}'.format(model_path))
70 elif model_content and not model_path:
78 elif not model_path and not model_path:
Dinterpreter_test.py34 model_path=resource_loader.get_path_to_datafile(
61 model_path = resource_loader.get_path_to_datafile(
63 with io.open(model_path, 'rb') as model_file:
96 model_path=resource_loader.get_path_to_datafile(
141 model_path='totally_invalid_file_name')
145 model_path=resource_loader.get_path_to_datafile(
156 model_path=resource_loader.get_path_to_datafile(
/external/tensorflow/tensorflow/contrib/learn/python/learn/
Dexport_strategy_test.py28 model_path = '/path/to/model'
31 return model_path
35 self.assertIs(strategy.export(None, None), model_path)
/external/tensorflow/tensorflow/lite/tools/benchmark/
Dbenchmark_test.cc107 std::string model_path; in main() local
109 tflite::Flag::CreateFlag("graph", &model_path, "Path to model file.")}; in main()
110 g_model_path = &model_path; in main()
/external/tensorflow/tensorflow/lite/python/interpreter_wrapper/
Dinterpreter_wrapper.i36 static PyObject* CreateWrapperCPPFromFile(const char* model_path) { in CreateWrapperCPPFromFile() argument
41 model_path, &error)) { in CreateWrapperCPPFromFile()
Dinterpreter_wrapper.h47 static InterpreterWrapper* CreateWrapperCPPFromFile(const char* model_path,
Dinterpreter_wrapper.cc409 const char* model_path, std::string* error_msg) { in CreateWrapperCPPFromFile() argument
412 tflite::FlatBufferModel::BuildFromFile(model_path, error_reporter.get()); in CreateWrapperCPPFromFile()
/external/tensorflow/tensorflow/contrib/framework/python/ops/
Dvariables_test.py972 model_path = self.create_checkpoint_from_values(var_names_to_values,
979 model_path, vars_to_restore)
1002 model_path = self.create_checkpoint_from_values(var_names_to_values,
1015 model_path, vars_to_restore)
1043 model_path = self.create_checkpoint_from_values(var_names_to_values,
1051 variables_lib2.assign_from_checkpoint(model_path, vars_to_restore)
1066 model_path = self.create_checkpoint_from_values(var_names_to_values,
1075 model_path, vars_to_restore)
1127 model_path = self.create_checkpoint_from_values(var_names_to_values,
1134 model_path, vars_to_restore)
[all …]
Dvariables.py617 def assign_from_checkpoint(model_path, var_list, ignore_missing_vars=False): argument
661 reader = pywrap_tensorflow.NewCheckpointReader(model_path)
703 def assign_from_checkpoint_fn(model_path, var_list, ignore_missing_vars=False, argument
733 reader = pywrap_tensorflow.NewCheckpointReader(model_path)
744 'Variable %s missing in checkpoint %s', var, model_path)
750 saver.restore(session, model_path)
/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/examples/ios/camera/
Dtensorflow_utils.mm124 NSString* model_path = FilePathForResourceName(file_name, file_type);
125 if (!model_path) {
132 PortableReadFileToProto([model_path UTF8String], &tensorflow_graph);
134 LOG(ERROR) << "Failed to load model proto from" << [model_path UTF8String];
135 return tensorflow::errors::NotFound([model_path UTF8String]);
/external/tensorflow/tensorflow/lite/tools/optimize/
Dquantize_weights_test.cc40 auto model_path = tensorflow::io::JoinPath( in ReadTestModel() local
42 return FlatBufferModel::BuildFromFile(model_path.c_str()); in ReadTestModel()
46 auto model_path = tensorflow::io::JoinPath(*g_test_model_dir, in ReadSharedWeightsTestModel() local
48 return FlatBufferModel::BuildFromFile(model_path.c_str()); in ReadSharedWeightsTestModel()
Dquantize_model_test.cc40 auto model_path = tensorflow::io::JoinPath( in ReadTestModel() local
42 return FlatBufferModel::BuildFromFile(model_path.c_str()); in ReadTestModel()
Dquantization_utils_test.cc35 auto model_path = tensorflow::io::JoinPath(*g_test_model_dir, model); in ReadModel() local
36 return FlatBufferModel::BuildFromFile(model_path.c_str()); in ReadModel()
Dsubgraph_quantizer_test.cc36 auto model_path = tensorflow::io::JoinPath(*g_test_model_dir, model); in ReadModel() local
37 return FlatBufferModel::BuildFromFile(model_path.c_str()); in ReadModel()
/external/tensorflow/tensorflow/lite/experimental/c/
Dc_api.cc59 TFL_Model* TFL_NewModelFromFile(const char* model_path) { in TFL_NewModelFromFile() argument
60 auto model = tflite::FlatBufferModel::BuildFromFile(model_path); in TFL_NewModelFromFile()
Dc_api.h71 TFL_CAPI_EXPORT extern TFL_Model* TFL_NewModelFromFile(const char* model_path);
/external/tensorflow/tensorflow/lite/tools/optimize/calibration/
Dnode_info_delegate_test.cc37 auto model_path = tensorflow::io::JoinPath(*g_test_model_dir, model); in ReadModel() local
38 return FlatBufferModel::BuildFromFile(model_path.c_str()); in ReadModel()
/external/tensorflow/tensorflow/lite/tutorials/
Dmnist_tflite.py72 interpreter = tf.lite.Interpreter(model_path=flags.model_file)
/external/tensorflow/tensorflow/lite/examples/python/
Dlabel_image.py51 interpreter = interpreter_wrapper.Interpreter(model_path=args.model_file)
/external/tensorflow/tensorflow/lite/tools/pip_package/
DREADME.md22 interpreter = tflr.lite.Interpreter(model_path="foo.tflite")
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.lite.-interpreter.pbtxt7 …argspec: "args=[\'self\', \'model_path\', \'model_content\'], varargs=None, keywords=None, default…
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.lite.-interpreter.pbtxt7 …argspec: "args=[\'self\', \'model_path\', \'model_content\'], varargs=None, keywords=None, default…
/external/tensorflow/tensorflow/contrib/slim/python/slim/
Dlearning_test.py750 model_path = os.path.join(logdir1, 'model.ckpt-300')
754 model_path, model_variables)
798 model_path = os.path.join(logdir1, 'model.ckpt-300')
802 saver.restore(sess, model_path)

12