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

Function AcquireFlexDelegate

tensorflow/lite/model.cc:55–57  ·  view source on GitHub ↗

Using weak symbols for the flex delegate allows automatic injection of the delegate simply by adding it as a dependency. See also the strong override in lite/delegates/flex/delegate.cc.

Source from the content-addressed store, hash-verified

53// delegate simply by adding it as a dependency. See also the strong override in
54// lite/delegates/flex/delegate.cc.
55__attribute__((weak)) Interpreter::TfLiteDelegatePtr AcquireFlexDelegate() {
56 return Interpreter::TfLiteDelegatePtr(nullptr, [](TfLiteDelegate*) {});
57}
58#else
59Interpreter::TfLiteDelegatePtr (*AcquireFlexDelegate)() = nullptr;
60#endif

Callers 1

ApplyDelegatesMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected