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

Method UseNNAPI

tensorflow/lite/core/subgraph.cc:1077–1085  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1075}
1076
1077void Subgraph::UseNNAPI(bool enable) {
1078 // Note that there is no way to disable the delegate once it modified the
1079 // graph.
1080 if (applied_nnapi_delegate_ && !enable) {
1081 ReportError("Attempting to disable NNAPI delegate after it's applied.");
1082 } else {
1083 should_apply_nnapi_delegate_ = enable;
1084 }
1085}
1086
1087void Subgraph::SwitchToDelegateContext() {
1088 context_.GetNodeAndRegistration = GetNodeAndRegistration;

Callers 3

InitMethod · 0.45
RunInferenceFunction · 0.45

Calls 1

ReportErrorFunction · 0.50

Tested by

no test coverage detected