Home
last modified time | relevance | path

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

1234

/external/tensorflow/tensorflow/lite/
Dmodel_builder.cc57 std::unique_ptr<FlatBufferModel> FlatBufferModel::BuildFromFile( in BuildFromFile()
64 std::unique_ptr<FlatBufferModel> FlatBufferModel::VerifyAndBuildFromFile( in VerifyAndBuildFromFile()
74 std::unique_ptr<FlatBufferModel> FlatBufferModel::BuildFromBuffer( in BuildFromBuffer()
83 std::unique_ptr<FlatBufferModel> FlatBufferModel::VerifyAndBuildFromBuffer( in VerifyAndBuildFromBuffer()
93 std::unique_ptr<FlatBufferModel> FlatBufferModel::BuildFromAllocation( in BuildFromAllocation()
95 std::unique_ptr<FlatBufferModel> model(new FlatBufferModel( in BuildFromAllocation()
103 std::unique_ptr<FlatBufferModel> FlatBufferModel::VerifyAndBuildFromAllocation( in VerifyAndBuildFromAllocation()
131 std::unique_ptr<FlatBufferModel> FlatBufferModel::BuildFromModel( in BuildFromModel()
136 std::unique_ptr<FlatBufferModel> model( in BuildFromModel()
137 new FlatBufferModel(caller_owned_model_spec, error_reporter)); in BuildFromModel()
[all …]
Dmodel_builder.h68 class FlatBufferModel {
74 static std::unique_ptr<FlatBufferModel> BuildFromFile(
87 static std::unique_ptr<FlatBufferModel> VerifyAndBuildFromFile(
99 static std::unique_ptr<FlatBufferModel> BuildFromBuffer(
113 static std::unique_ptr<FlatBufferModel> VerifyAndBuildFromBuffer(
123 static std::unique_ptr<FlatBufferModel> BuildFromAllocation(
137 static std::unique_ptr<FlatBufferModel> VerifyAndBuildFromAllocation(
147 static std::unique_ptr<FlatBufferModel> BuildFromModel(
152 ~FlatBufferModel();
155 FlatBufferModel(const FlatBufferModel&) = delete;
[all …]
Dmodel_test.cc88 ASSERT_TRUE(!FlatBufferModel::BuildFromFile("/tmp/tflite_model_1234")); in TEST()
114 FlatBufferModel::BuildFromBuffer(aligned, empty_model_data.size())); in TEST()
122 FlatBufferModel::BuildFromBuffer(unaligned, empty_model_data.size())); in TEST()
125 FlatBufferModel::BuildFromBuffer(unaligned, empty_model_data.size())); in TEST()
131 auto model = FlatBufferModel::BuildFromFile( in TEST()
142 auto model = FlatBufferModel::BuildFromFile( in TEST()
152 auto m = FlatBufferModel::BuildFromFile( in TEST()
160 auto m = FlatBufferModel::BuildFromFile( in TEST()
169 auto m = FlatBufferModel::BuildFromFile( in TEST()
182 auto model = FlatBufferModel::BuildFromFile( in TEST()
[all …]
Dmodel_xnnpack_test.cc33 auto model = FlatBufferModel::BuildFromFile( in TEST()
59 auto model = FlatBufferModel::BuildFromFile( in TEST()
Doptional_debug_tools_test.cc40 auto model = FlatBufferModel::BuildFromFile( in TEST()
66 auto model = FlatBufferModel::BuildFromFile( in TEST()
/external/tensorflow/tensorflow/lite/tools/serialization/
Dwriter_lib_test.cc133 std::unique_ptr<FlatBufferModel> model = in TEST_P()
134 FlatBufferModel::BuildFromFile(test_file.c_str()); in TEST_P()
181 std::unique_ptr<FlatBufferModel> model = in TEST_P()
182 FlatBufferModel::BuildFromFile(test_file.c_str()); in TEST_P()
276 std::unique_ptr<FlatBufferModel> model = in TEST_P()
277 FlatBufferModel::BuildFromFile(test_file.c_str()); in TEST_P()
307 std::unique_ptr<FlatBufferModel> model = in TEST_P()
308 FlatBufferModel::BuildFromFile(test_file.c_str()); in TEST_P()
336 std::unique_ptr<FlatBufferModel> model = in TEST_P()
337 FlatBufferModel::BuildFromFile(test_file.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()
46 model = tflite::FlatBufferModel::BuildFromBuffer( in main()
Dwriter.cc32 std::unique_ptr<tflite::FlatBufferModel> model = in main()
33 tflite::FlatBufferModel::BuildFromFile(argv[1]); in main()
/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.cc332 std::unique_ptr<const tflite::FlatBufferModel> TfLiteModelFromModelSpec( in TfLiteModelFromModelSpec()
334 std::unique_ptr<const tflite::FlatBufferModel> model( in TfLiteModelFromModelSpec()
335 tflite::FlatBufferModel::BuildFromModel(model_spec)); in TfLiteModelFromModelSpec()
343 std::unique_ptr<const tflite::FlatBufferModel> TfLiteModelFromBuffer( in TfLiteModelFromBuffer()
356 std::unique_ptr<const tflite::FlatBufferModel> model) in TfLiteModelExecutor()
359 std::unique_ptr<const tflite::FlatBufferModel> model, in TfLiteModelExecutor()
/external/tensorflow/tensorflow/lite/tools/versioning/
Dgpu_compatibility_test.cc56 auto model = FlatBufferModel::BuildFromFile(full_path.data()); in TEST()
64 auto model = FlatBufferModel::BuildFromFile(full_path.data()); in TEST()
73 auto model = FlatBufferModel::BuildFromFile(full_path.data()); in TEST()
/external/tensorflow/tensorflow/lite/core/shims/cc/
Dmodel_builder.h23 using FlatBufferModel = ::tflite::FlatBufferModel; variable
/external/tensorflow/tensorflow/lite/python/optimize/
Dcalibration_wrapper.h40 class FlatBufferModel; variable
116 std::unique_ptr<tflite::FlatBufferModel> model,
129 std::unique_ptr<tflite::FlatBufferModel> model_;
/external/tensorflow/tensorflow/lite/experimental/acceleration/mini_benchmark/
Dmodel_loader.cc53 model_ = FlatBufferModel::VerifyAndBuildFromFile(model_path_.c_str()); in InitInternal()
71 model_ = FlatBufferModel::VerifyAndBuildFromAllocation(std::move(allocation)); in InitInternal()
102 model_ = FlatBufferModel::BuildFromModel(tflite::GetModel(model_buffer_)); in InitInternal()
Dmodel_loader.h41 const FlatBufferModel* GetModel() const { return model_.get(); } in GetModel()
51 std::unique_ptr<FlatBufferModel> model_;
/external/tensorflow/tensorflow/lite/tools/signature/
Dsignature_def_util_wrapper_pybind11.cc27 auto flatbuffer_model = tflite::FlatBufferModel::BuildFromBuffer( in WrappedSetSignatureDefMap()
51 auto flatbuffer_model = tflite::FlatBufferModel::BuildFromBuffer( in WrappedGetSignatureDefMap()
72 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/tools/delegates/compatibility/common/
Ddelegate_compatibility_checker_base.h46 tflite::FlatBufferModel* model_buffer,
54 tflite::FlatBufferModel* model_buffer,
Ddelegate_compatibility_checker_base.cc34 tflite::FlatBufferModel* model_buffer, proto::CompatibilityResult* result) { in checkModelCompatibilityOffline()
55 tflite::FlatBufferModel* model_buffer, proto::CompatibilityResult* result) { in checkModelCompatibilityOnline()
/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/tensorflow/tensorflow/lite/c/
Dc_api_internal.h40 std::shared_ptr<const tflite::FlatBufferModel> impl;
116 std::shared_ptr<const tflite::FlatBufferModel> model;
Dc_api.cc57 auto model = tflite::FlatBufferModel::VerifyAndBuildFromBuffer( in TfLiteModelCreate()
59 std::shared_ptr<const tflite::FlatBufferModel> shared_model(model.release()); in TfLiteModelCreate()
64 auto model = tflite::FlatBufferModel::VerifyAndBuildFromFile(model_path); in TfLiteModelCreateFromFile()
65 std::shared_ptr<const tflite::FlatBufferModel> shared_model(model.release()); in TfLiteModelCreateFromFile()
/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/compiler/mlir/lite/quantization/lite/
Dquantize_weights_test.cc51 std::unique_ptr<FlatBufferModel> ReadTestModel() { in ReadTestModel()
54 return FlatBufferModel::BuildFromFile(model_path.c_str()); in ReadTestModel()
57 std::unique_ptr<FlatBufferModel> ReadSharedWeightsTestModel() { in ReadSharedWeightsTestModel()
60 return FlatBufferModel::BuildFromFile(model_path.c_str()); in ReadSharedWeightsTestModel()
63 std::unique_ptr<FlatBufferModel> ReadGatherTestModel() { in ReadGatherTestModel()
66 return FlatBufferModel::BuildFromFile(model_path.c_str()); in ReadGatherTestModel()
69 std::unique_ptr<FlatBufferModel> ReadCustomOpTestModel() { in ReadCustomOpTestModel()
72 return FlatBufferModel::BuildFromFile(model_path.c_str()); in ReadCustomOpTestModel()
104 std::unique_ptr<FlatBufferModel> input_model_;

1234