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

Method SetCancellationFunction

tensorflow/lite/interpreter.cc:262–267  ·  view source on GitHub ↗

TODO(b/121264966): Subgraphs added after cancellation is set will not get the cancellation function added to their context.

Source from the content-addressed store, hash-verified

260// TODO(b/121264966): Subgraphs added after cancellation is set will not get the
261// cancellation function added to their context.
262void Interpreter::SetCancellationFunction(void* data,
263 bool (*check_cancelled_func)(void*)) {
264 for (auto& subgraph : subgraphs_) {
265 subgraph->SetCancellationFunction(data, check_cancelled_func);
266 }
267}
268
269TfLiteStatus Interpreter::ModifyGraphWithDelegate(TfLiteDelegate* delegate) {
270 for (auto& subgraph : subgraphs_) {

Callers 1

SetUpMethod · 0.45

Calls

no outgoing calls

Tested by 1

SetUpMethod · 0.36