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

Function ReportOpError

tensorflow/lite/core/subgraph.cc:43–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 std::unique_ptr<TfLiteQuantization, TfLiteQuantizationDeleter>;
42
43TfLiteStatus ReportOpError(TfLiteContext* context, const TfLiteNode& node,
44 const TfLiteRegistration& registration,
45 int node_index, const char* message) {
46 context->ReportError(
47 context, "Node number %d (%s) %s.\n", node_index,
48 registration.custom_name
49 ? registration.custom_name
50 : EnumNameBuiltinOperator(
51 static_cast<BuiltinOperator>(registration.builtin_code)),
52 message);
53 return kTfLiteError;
54}
55
56// Stub method which returns kTfLiteError when the function is forbidden.
57// We're registering this function to several different function to save

Callers 2

PrepareOpsStartingAtMethod · 0.70
InvokeMethod · 0.70

Calls 2

EnumNameBuiltinOperatorFunction · 0.85
ReportErrorMethod · 0.45

Tested by

no test coverage detected