/external/tensorflow/tensorflow/lite/python/optimize/ |
D | calibrator_test.py | 31 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/ |
D | interpreter.py | 54 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:
|
D | interpreter_test.py | 34 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/ |
D | export_strategy_test.py | 28 model_path = '/path/to/model' 31 return model_path 35 self.assertIs(strategy.export(None, None), model_path)
|
/external/tensorflow/tensorflow/lite/tools/benchmark/ |
D | benchmark_test.cc | 107 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/ |
D | interpreter_wrapper.i | 36 static PyObject* CreateWrapperCPPFromFile(const char* model_path) { in CreateWrapperCPPFromFile() argument 41 model_path, &error)) { in CreateWrapperCPPFromFile()
|
D | interpreter_wrapper.h | 47 static InterpreterWrapper* CreateWrapperCPPFromFile(const char* model_path,
|
D | interpreter_wrapper.cc | 409 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/ |
D | variables_test.py | 972 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 …]
|
D | variables.py | 617 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/ |
D | gen_op_registration_test.cc | 28 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/ |
D | tensorflow_utils.mm | 124 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/ |
D | quantize_weights_test.cc | 40 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()
|
D | quantize_model_test.cc | 40 auto model_path = tensorflow::io::JoinPath( in ReadTestModel() local 42 return FlatBufferModel::BuildFromFile(model_path.c_str()); in ReadTestModel()
|
D | quantization_utils_test.cc | 35 auto model_path = tensorflow::io::JoinPath(*g_test_model_dir, model); in ReadModel() local 36 return FlatBufferModel::BuildFromFile(model_path.c_str()); in ReadModel()
|
D | subgraph_quantizer_test.cc | 36 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/ |
D | c_api.cc | 59 TFL_Model* TFL_NewModelFromFile(const char* model_path) { in TFL_NewModelFromFile() argument 60 auto model = tflite::FlatBufferModel::BuildFromFile(model_path); in TFL_NewModelFromFile()
|
D | c_api.h | 71 TFL_CAPI_EXPORT extern TFL_Model* TFL_NewModelFromFile(const char* model_path);
|
/external/tensorflow/tensorflow/lite/tools/optimize/calibration/ |
D | node_info_delegate_test.cc | 37 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/ |
D | mnist_tflite.py | 72 interpreter = tf.lite.Interpreter(model_path=flags.model_file)
|
/external/tensorflow/tensorflow/lite/examples/python/ |
D | label_image.py | 51 interpreter = interpreter_wrapper.Interpreter(model_path=args.model_file)
|
/external/tensorflow/tensorflow/lite/tools/pip_package/ |
D | README.md | 22 interpreter = tflr.lite.Interpreter(model_path="foo.tflite")
|
/external/tensorflow/tensorflow/tools/api/golden/v1/ |
D | tensorflow.lite.-interpreter.pbtxt | 7 …argspec: "args=[\'self\', \'model_path\', \'model_content\'], varargs=None, keywords=None, default…
|
/external/tensorflow/tensorflow/tools/api/golden/v2/ |
D | tensorflow.lite.-interpreter.pbtxt | 7 …argspec: "args=[\'self\', \'model_path\', \'model_content\'], varargs=None, keywords=None, default…
|
/external/tensorflow/tensorflow/contrib/slim/python/slim/ |
D | learning_test.py | 750 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)
|