/external/tensorflow/tensorflow/lite/ |
D | model_builder.cc | 59 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 …]
|
D | model_builder.h | 63 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 …]
|
D | model_test.cc | 87 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 …]
|
D | model_xnnpack_test.cc | 33 auto model = FlatBufferModel::BuildFromFile( in TEST() 59 auto model = FlatBufferModel::BuildFromFile( in TEST()
|
/external/tensorflow/tensorflow/lite/tools/serialization/ |
D | writer_lib_test.cc | 127 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 …]
|
D | writer_test.cc | 33 std::unique_ptr<tflite::FlatBufferModel> model = in main() 34 tflite::FlatBufferModel::BuildFromFile(argv[1]); in main() 45 model = tflite::FlatBufferModel::BuildFromBuffer( in main()
|
D | writer.cc | 32 std::unique_ptr<tflite::FlatBufferModel> model = in main() 33 tflite::FlatBufferModel::BuildFromFile(argv[1]); in main()
|
D | README.md | 57 std::unique_ptr<FlatBufferModel> model = 58 FlatBufferModel::BuildFromFile(filename);
|
/external/libtextclassifier/native/utils/ |
D | tflite-model-executor.h | 46 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_;
|
D | tflite-model-executor.cc | 307 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/ |
D | model_builder.h | 23 using FlatBufferModel = ::tflite::FlatBufferModel; variable
|
/external/tensorflow/tensorflow/lite/python/optimize/ |
D | calibration_wrapper.h | 39 class FlatBufferModel; variable 88 std::unique_ptr<tflite::FlatBufferModel> model, 100 std::unique_ptr<tflite::FlatBufferModel> model_;
|
D | calibration_wrapper.cc | 58 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/ |
D | signature_def_util_wrapper_pybind11.cc | 25 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/ |
D | minimal.cc | 45 std::unique_ptr<tflite::FlatBufferModel> model = in main() 46 tflite::FlatBufferModel::BuildFromFile(filename); in main()
|
/external/tensorflow/tensorflow/lite/c/ |
D | c_api_internal.h | 38 std::shared_ptr<const tflite::FlatBufferModel> impl; 101 std::shared_ptr<const tflite::FlatBufferModel> model;
|
D | c_api.cc | 91 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/ |
D | selective_build_test.cc | 28 std::unique_ptr<tflite::FlatBufferModel> model = in RunWithRandomInputs() 29 tflite::FlatBufferModel::BuildFromFile(filename.c_str()); in RunWithRandomInputs()
|
/external/tensorflow/tensorflow/lite/tools/optimize/ |
D | quantize_weights_test.cc | 41 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/ |
D | tflite_inference_main.cc | 45 std::unique_ptr<tflite::FlatBufferModel> model = in RunWithRandomInputs() 46 tflite::FlatBufferModel::BuildFromFile(filename.c_str()); in RunWithRandomInputs()
|
/external/tensorflow/tensorflow/lite/toco/python/ |
D | toco_python_api.cc | 250 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/ |
D | interpreter_wrapper.h | 42 class FlatBufferModel; variable 50 using Model = FlatBufferModel;
|
/external/tensorflow/tensorflow/lite/delegates/gpu/common/testing/ |
D | tflite_model_reader.h | 28 absl::Status BuildFromFlatBuffer(const tflite::FlatBufferModel& flatbuffer,
|
/external/tensorflow/tensorflow/compiler/mlir/lite/ |
D | mlir_tflite_runner.cc | 132 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/ |
D | label_image.h | 38 tflite::FlatBufferModel* model;
|