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

Method ApplyDelegates

tensorflow/lite/model.cc:516–525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

514}
515
516TfLiteStatus InterpreterBuilder::ApplyDelegates(Interpreter* interpreter) {
517 // Apply Flex delegate if applicable.
518 if (!has_flex_op_ || AcquireFlexDelegate == nullptr) {
519 return kTfLiteOk;
520 } else if (auto flex_delegate = AcquireFlexDelegate()) {
521 return interpreter->ModifyGraphWithDelegate(std::move(flex_delegate));
522 }
523
524 return kTfLiteOk;
525}
526
527TfLiteStatus InterpreterBuilder::operator()(
528 std::unique_ptr<Interpreter>* interpreter) {

Callers

nothing calls this directly

Calls 2

AcquireFlexDelegateFunction · 0.70

Tested by

no test coverage detected