MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TfLiteModelCreateFromFile

Function TfLiteModelCreateFromFile

tensorflow/lite/experimental/c/c_api.cc:62–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62TfLiteModel* TfLiteModelCreateFromFile(const char* model_path) {
63 auto model = tflite::FlatBufferModel::VerifyAndBuildFromFile(model_path);
64 std::shared_ptr<const tflite::FlatBufferModel> shared_model(model.release());
65 return shared_model ? new TfLiteModel{std::move(shared_model)} : nullptr;
66}
67
68void TfLiteModelDelete(TfLiteModel* model) { delete model; }
69

Callers 2

TESTFunction · 0.85
TESTFunction · 0.85

Calls 1

releaseMethod · 0.45

Tested by 2

TESTFunction · 0.68
TESTFunction · 0.68