Home
last modified time | relevance | path

Searched refs:model_file (Results 1 – 25 of 32) sorted by relevance

12

/external/tensorflow/tensorflow/lite/tools/optimize/python/
Dmodify_model_interface_lib_test.py66 with open(initial_file, 'wb') as model_file:
67 model_file.write(initial_model)
103 with open(initial_file, 'wb') as model_file:
104 model_file.write(initial_model)
138 with open(initial_file, 'wb') as model_file:
139 model_file.write(initial_model)
/external/autotest/client/cros/storage_tests/
Dfio_test.py67 model_file = '%s/model' % dir_path
68 if os.path.exists(model_file):
69 self.__description = utils.read_one_line(model_file).strip()
74 model_file = device_path.replace('block/%s' % device, 'model')
75 if os.path.exists(vendor_file) and os.path.exists(model_file):
77 model = utils.read_one_line(model_file).strip()
/external/tensorflow/tensorflow/examples/label_image/
Dlabel_image.py26 def load_graph(model_file): argument
30 with open(model_file, "rb") as f:
75 model_file = \ variable
98 model_file = args.graph variable
116 graph = load_graph(model_file)
/external/tensorflow/tensorflow/lite/testing/
Dtflite_model_test.bzl59 model_file = tensorflow_model_file,
99 model_file,
106 model_file: the path to the input file.
126 srcs = [model_file]
148 cmd = cmd % (tool, model_file, output_file),
/external/tensorflow/tensorflow/lite/c/
Dc_api_test.cc243 std::ifstream model_file("tensorflow/lite/testdata/add.bin"); in TEST() local
245 model_file.seekg(0, std::ios_base::end); in TEST()
246 std::vector<char> model_buffer(model_file.tellg()); in TEST()
248 model_file.seekg(0, std::ios_base::beg); in TEST()
249 model_file.read(model_buffer.data(), model_buffer.size()); in TEST()
/external/tensorflow/tensorflow/lite/tools/
Dlist_flex_ops_main.cc36 for (const std::string& model_file : models) { in main() local
39 fin.open(model_file); in main()
Dvisualize_test.py51 with open(model_filename, 'wb') as model_file:
52 model_file.write(model)
/external/tensorflow/tensorflow/lite/toco/python/
Dtoco_from_protos.py34 with open(FLAGS.model_proto_file, "rb") as model_file:
35 model_str = model_file.read()
/external/llvm-project/clang-tools-extra/clangd/quality/
DCompletionModelCodegen.py291 model_file = "%s/forest.json" % ns.model
297 with open(model_file) as m:
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.lite.-toco-converter.pbtxt14 …argspec: "args=[\'cls\', \'model_file\', \'input_arrays\', \'input_shapes\', \'output_arrays\'], v…
Dtensorflow.lite.-t-f-lite-converter.pbtxt22 …argspec: "args=[\'cls\', \'model_file\', \'input_arrays\', \'input_shapes\', \'output_arrays\', \'…
/external/tensorflow/tensorflow/lite/tutorials/
Dmnist_tflite.py73 interpreter = tf.lite.Interpreter(model_path=flags.model_file)
/external/tensorflow/tensorflow/lite/tools/evaluation/tasks/inference_diff/
DREADME.md39 * `model_file` : `string` \
103 --model_file=/data/local/tmp/mobilenet_v1_1.0_224.tflite \
/external/tensorflow/tensorflow/lite/tools/evaluation/tasks/imagenet_image_classification/
DREADME.md39 * `model_file` : `string` \
186 --model_file=/data/local/tmp/mobilenet_quant_v1_224.tflite \
202 --model_file=mobilenet_quant_v1_224.tflite \
/external/tensorflow/tensorflow/lite/examples/python/
Dlabel_image.py64 model_path=args.model_file, num_threads=args.num_threads)
DREADME.md34 --model_file /tmp/mobilenet_v1_1.0_224.tflite \
/external/tensorflow/tensorflow/lite/tools/optimize/calibration/
Dcalibrator_test.cc480 tensorflow::string model_file; in main() local
482 tensorflow::Flag("test_model_file", &model_file, in main()
492 new tensorflow::string(tensorflow::io::Dirname(model_file)); in main()
/external/tensorflow/tensorflow/lite/python/
Dlite.py1502 model_file, argument
1535 model_file, custom_objects)
1552 model_file, custom_objects)
1984 model_file,
2007 return TFLiteKerasModelConverter(model_file, input_arrays, input_shapes,
2071 model_file,
2076 return TFLiteConverter.from_keras_model_file(model_file, input_arrays,
Dtflite_convert_test.py66 with gfile.Open(output_file, 'rb') as model_file:
67 content = model_file.read()
Dinterpreter_test.py152 with io.open(model_path, 'rb') as model_file:
153 data = model_file.read()
/external/tensorflow/tensorflow/lite/g3doc/guide/
Dpython.md80 interpreter = tf.lite.Interpreter(model_path=args.model_file)
86 interpreter = tflite.Interpreter(model_path=args.model_file)
/external/tensorflow/tensorflow/lite/java/src/main/native/
Dnativeinterpreterwrapper_jni.cc518 JNIEnv* env, jclass clazz, jstring model_file, jlong error_handle) { in Java_org_tensorflow_lite_NativeInterpreterWrapper_createModel() argument
522 const char* path = env->GetStringUTFChars(model_file, nullptr); in Java_org_tensorflow_lite_NativeInterpreterWrapper_createModel()
534 env->ReleaseStringUTFChars(model_file, path); in Java_org_tensorflow_lite_NativeInterpreterWrapper_createModel()
537 env->ReleaseStringUTFChars(model_file, path); in Java_org_tensorflow_lite_NativeInterpreterWrapper_createModel()
/external/tensorflow/tensorflow/lite/tools/evaluation/tasks/coco_object_detection/
DREADME.md42 * `model_file` : `string` \
233 --model_file=/data/local/tmp/ssd_mobilenet_v1_float.tflite \
251 --model_file=/path/to/ssd_mobilenet_v1_float.tflite \
/external/tensorflow/tensorflow/lite/tools/optimize/
Dquantize_weights_test.cc599 tensorflow::string model_file; in main() local
601 tensorflow::Flag("test_model_file", &model_file, in main()
611 new tensorflow::string(tensorflow::io::Dirname(model_file)); in main()
Dquantization_utils_test.cc824 tensorflow::string model_file; in main() local
826 tensorflow::Flag("test_model_file", &model_file, in main()
836 new tensorflow::string(tensorflow::io::Dirname(model_file)); in main()

12