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

Method ApplyDelegate

tensorflow/lite/kernels/test_util.cc:171–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171void SingleOpModel::ApplyDelegate() {
172 if (force_use_nnapi) {
173 // TODO(b/124505407): Check the result and fail accordingly.
174 interpreter_->ModifyGraphWithDelegate(TestNnApiDelegate());
175 }
176
177 // Modify delegate with function.
178 if (apply_delegate_fn_) {
179 apply_delegate_fn_(interpreter_.get());
180 }
181}
182
183void SingleOpModel::Invoke() { ASSERT_EQ(interpreter_->Invoke(), kTfLiteOk); }
184

Callers 1

VerifyGoldensMethod · 0.80

Calls 3

TestNnApiDelegateFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected