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

Function CreateNNAPIDelegate

tensorflow/lite/tools/evaluation/utils.cc:77–86  ·  view source on GitHub ↗

TODO(b/138448769): Migrate delegate helper APIs to lite/testing.

Source from the content-addressed store, hash-verified

75
76// TODO(b/138448769): Migrate delegate helper APIs to lite/testing.
77Interpreter::TfLiteDelegatePtr CreateNNAPIDelegate() {
78#if defined(__ANDROID__)
79 return Interpreter::TfLiteDelegatePtr(
80 NnApiDelegate(),
81 // NnApiDelegate() returns a singleton, so provide a no-op deleter.
82 [](TfLiteDelegate*) {});
83#else
84 return Interpreter::TfLiteDelegatePtr(nullptr, [](TfLiteDelegate*) {});
85#endif // defined(__ANDROID__)
86}
87
88Interpreter::TfLiteDelegatePtr CreateNNAPIDelegate(
89 StatefulNnApiDelegate::Options options) {

Callers 5

GetDelegatesMethod · 0.85
InitMethod · 0.85
TESTFunction · 0.85
GetDelegatesFunction · 0.85
TfLiteDriverMethod · 0.85

Calls 1

NnApiDelegateFunction · 0.50

Tested by 1

TESTFunction · 0.68