Home
last modified time | relevance | path

Searched refs:FlatBufferModel (Results 1 – 25 of 68) sorted by relevance

123

/external/tensorflow/tensorflow/lite/
Dmodel_builder.cc59 std::unique_ptr<FlatBufferModel> FlatBufferModel::BuildFromFile( in BuildFromFile()
63 std::unique_ptr<FlatBufferModel> model; in BuildFromFile()
66 model.reset(new FlatBufferModel(std::move(allocation), error_reporter)); in BuildFromFile()
71 std::unique_ptr<FlatBufferModel> FlatBufferModel::VerifyAndBuildFromFile( in VerifyAndBuildFromFile()
76 std::unique_ptr<FlatBufferModel> model; in VerifyAndBuildFromFile()
94 model.reset(new FlatBufferModel(std::move(allocation), error_reporter)); in VerifyAndBuildFromFile()
100 std::unique_ptr<FlatBufferModel> FlatBufferModel::BuildFromBuffer( in BuildFromBuffer()
105 std::unique_ptr<FlatBufferModel> model; in BuildFromBuffer()
108 model.reset(new FlatBufferModel(std::move(allocation), error_reporter)); in BuildFromBuffer()
113 std::unique_ptr<FlatBufferModel> FlatBufferModel::VerifyAndBuildFromBuffer( in VerifyAndBuildFromBuffer()
[all …]
Dmodel_builder.h63 class FlatBufferModel {
69 static std::unique_ptr<FlatBufferModel> BuildFromFile(
82 static std::unique_ptr<FlatBufferModel> VerifyAndBuildFromFile(
94 static std::unique_ptr<FlatBufferModel> BuildFromBuffer(
108 static std::unique_ptr<FlatBufferModel> VerifyAndBuildFromBuffer(
118 static std::unique_ptr<FlatBufferModel> BuildFromModel(
123 ~FlatBufferModel();
126 FlatBufferModel(const FlatBufferModel&) = delete;
127 FlatBufferModel& operator=(const FlatBufferModel&) = delete;
155 FlatBufferModel(std::unique_ptr<Allocation> allocation,
[all …]
Dmodel_test.cc87 ASSERT_TRUE(!FlatBufferModel::BuildFromFile("/tmp/tflite_model_1234")); in TEST()
113 FlatBufferModel::BuildFromBuffer(aligned, empty_model_data.size())); in TEST()
121 FlatBufferModel::BuildFromBuffer(unaligned, empty_model_data.size())); in TEST()
124 FlatBufferModel::BuildFromBuffer(unaligned, empty_model_data.size())); in TEST()
130 auto model = FlatBufferModel::BuildFromFile( in TEST()
141 auto model = FlatBufferModel::BuildFromFile( in TEST()
151 auto m = FlatBufferModel::BuildFromFile( in TEST()
159 auto m = FlatBufferModel::BuildFromFile( in TEST()
168 auto m = FlatBufferModel::BuildFromFile( in TEST()
181 auto model = FlatBufferModel::BuildFromFile( in TEST()
[all …]
Dmodel_xnnpack_test.cc33 auto model = FlatBufferModel::BuildFromFile( in TEST()
59 auto model = FlatBufferModel::BuildFromFile( in TEST()
/external/tensorflow/tensorflow/lite/tools/serialization/
Dwriter_lib_test.cc127 std::unique_ptr<FlatBufferModel> model = in TEST_P()
128 FlatBufferModel::BuildFromFile(test_file.c_str()); in TEST_P()
175 std::unique_ptr<FlatBufferModel> model = in TEST_P()
176 FlatBufferModel::BuildFromFile(test_file.c_str()); in TEST_P()
270 std::unique_ptr<FlatBufferModel> model = in TEST_P()
271 FlatBufferModel::BuildFromFile(test_file.c_str()); in TEST_P()
301 std::unique_ptr<FlatBufferModel> model = in TEST_P()
302 FlatBufferModel::BuildFromFile(test_file.c_str()); in TEST_P()
376 std::unique_ptr<FlatBufferModel> model = in TEST_P()
377 FlatBufferModel::BuildFromFile(filename.c_str()); in TEST_P()
[all …]
Dwriter_test.cc33 std::unique_ptr<tflite::FlatBufferModel> model = in main()
34 tflite::FlatBufferModel::BuildFromFile(argv[1]); in main()
45 model = tflite::FlatBufferModel::BuildFromBuffer( in main()
Dwriter.cc32 std::unique_ptr<tflite::FlatBufferModel> model = in main()
33 tflite::FlatBufferModel::BuildFromFile(argv[1]); in main()
DREADME.md57 std::unique_ptr<FlatBufferModel> model =
58 FlatBufferModel::BuildFromFile(filename);
/external/libtextclassifier/native/utils/
Dtflite-model-executor.h46 std::unique_ptr<const tflite::FlatBufferModel> TfLiteModelFromModelSpec(
48 std::unique_ptr<const tflite::FlatBufferModel> TfLiteModelFromBuffer(
145 std::unique_ptr<const tflite::FlatBufferModel> model);
146 TfLiteModelExecutor(std::unique_ptr<const tflite::FlatBufferModel> model,
149 std::unique_ptr<const tflite::FlatBufferModel> model_;
Dtflite-model-executor.cc307 std::unique_ptr<const tflite::FlatBufferModel> TfLiteModelFromModelSpec( in TfLiteModelFromModelSpec()
309 std::unique_ptr<const tflite::FlatBufferModel> model( in TfLiteModelFromModelSpec()
310 tflite::FlatBufferModel::BuildFromModel(model_spec)); in TfLiteModelFromModelSpec()
318 std::unique_ptr<const tflite::FlatBufferModel> TfLiteModelFromBuffer( in TfLiteModelFromBuffer()
331 std::unique_ptr<const tflite::FlatBufferModel> model) in TfLiteModelExecutor()
334 std::unique_ptr<const tflite::FlatBufferModel> model, in TfLiteModelExecutor()
/external/tensorflow/tensorflow/lite/core/shims/cc/
Dmodel_builder.h23 using FlatBufferModel = ::tflite::FlatBufferModel; variable
/external/tensorflow/tensorflow/lite/python/optimize/
Dcalibration_wrapper.h39 class FlatBufferModel; variable
88 std::unique_ptr<tflite::FlatBufferModel> model,
100 std::unique_ptr<tflite::FlatBufferModel> model_;
Dcalibration_wrapper.cc58 bool NoOpModel(const tflite::FlatBufferModel& model) { in NoOpModel()
116 std::unique_ptr<tflite::FlatBufferModel> model = in AddIntermediateTensors()
117 tflite::FlatBufferModel::BuildFromBuffer(buf, length, in AddIntermediateTensors()
147 std::unique_ptr<tflite::FlatBufferModel> model, in CalibrationWrapper()
406 std::unique_ptr<tflite::FlatBufferModel> model = in CreateWrapperCPPFromBuffer()
407 tflite::FlatBufferModel::BuildFromBuffer(buf, length, in CreateWrapperCPPFromBuffer()
/external/tensorflow/tensorflow/lite/tools/signature/
Dsignature_def_util_wrapper_pybind11.cc25 auto flatbuffer_model = tflite::FlatBufferModel::BuildFromBuffer( in WrappedSetSignatureDefMap()
49 auto flatbuffer_model = tflite::FlatBufferModel::BuildFromBuffer( in WrappedGetSignatureDefMap()
70 auto flatbuffer_model = tflite::FlatBufferModel::BuildFromBuffer( in WrappedClearSignatureDefs()
/external/tensorflow/tensorflow/lite/examples/minimal/
Dminimal.cc45 std::unique_ptr<tflite::FlatBufferModel> model = in main()
46 tflite::FlatBufferModel::BuildFromFile(filename); in main()
/external/tensorflow/tensorflow/lite/c/
Dc_api_internal.h38 std::shared_ptr<const tflite::FlatBufferModel> impl;
101 std::shared_ptr<const tflite::FlatBufferModel> model;
Dc_api.cc91 auto model = tflite::FlatBufferModel::VerifyAndBuildFromBuffer( in TfLiteModelCreate()
93 std::shared_ptr<const tflite::FlatBufferModel> shared_model(model.release()); in TfLiteModelCreate()
98 auto model = tflite::FlatBufferModel::VerifyAndBuildFromFile(model_path); in TfLiteModelCreateFromFile()
99 std::shared_ptr<const tflite::FlatBufferModel> shared_model(model.release()); in TfLiteModelCreateFromFile()
/external/tensorflow/tensorflow/lite/testing/
Dselective_build_test.cc28 std::unique_ptr<tflite::FlatBufferModel> model = in RunWithRandomInputs()
29 tflite::FlatBufferModel::BuildFromFile(filename.c_str()); in RunWithRandomInputs()
/external/tensorflow/tensorflow/lite/tools/optimize/
Dquantize_weights_test.cc41 std::unique_ptr<FlatBufferModel> ReadTestModel() { in ReadTestModel()
44 return FlatBufferModel::BuildFromFile(model_path.c_str()); in ReadTestModel()
47 std::unique_ptr<FlatBufferModel> ReadSharedWeightsTestModel() { in ReadSharedWeightsTestModel()
50 return FlatBufferModel::BuildFromFile(model_path.c_str()); in ReadSharedWeightsTestModel()
53 std::unique_ptr<FlatBufferModel> ReadGatherTestModel() { in ReadGatherTestModel()
56 return FlatBufferModel::BuildFromFile(model_path.c_str()); in ReadGatherTestModel()
59 std::unique_ptr<FlatBufferModel> ReadCustomOpTestModel() { in ReadCustomOpTestModel()
62 return FlatBufferModel::BuildFromFile(model_path.c_str()); in ReadCustomOpTestModel()
94 std::unique_ptr<FlatBufferModel> input_model_;
/external/tflite-support/tensorflow_lite_support/custom_ops/
Dtflite_inference_main.cc45 std::unique_ptr<tflite::FlatBufferModel> model = in RunWithRandomInputs()
46 tflite::FlatBufferModel::BuildFromFile(filename.c_str()); in RunWithRandomInputs()
/external/tensorflow/tensorflow/lite/toco/python/
Dtoco_python_api.cc250 std::unique_ptr<tflite::FlatBufferModel> model = in MlirQuantizeModel()
251 tflite::FlatBufferModel::BuildFromBuffer(buf, length, in MlirQuantizeModel()
301 std::unique_ptr<tflite::FlatBufferModel> model = in MlirSparsifyModel()
302 tflite::FlatBufferModel::BuildFromBuffer(buf, length, in MlirSparsifyModel()
/external/tensorflow/tensorflow/lite/python/interpreter_wrapper/
Dinterpreter_wrapper.h42 class FlatBufferModel; variable
50 using Model = FlatBufferModel;
/external/tensorflow/tensorflow/lite/delegates/gpu/common/testing/
Dtflite_model_reader.h28 absl::Status BuildFromFlatBuffer(const tflite::FlatBufferModel& flatbuffer,
/external/tensorflow/tensorflow/compiler/mlir/lite/
Dmlir_tflite_runner.cc132 std::unique_ptr<tflite::FlatBufferModel> model = in main()
133 tflite::FlatBufferModel::BuildFromBuffer(serialized_flatbuffer.c_str(), in main()
/external/tensorflow/tensorflow/lite/examples/label_image/
Dlabel_image.h38 tflite::FlatBufferModel* model;

123