Skip to content

Commit

Permalink
Print invoke status on unsuccessful invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
andresovela committed Nov 12, 2024
1 parent 9245002 commit 2d52ab1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tensorflow/lite/micro/micro_interpreter_graph.cc
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,10 @@ TfLiteStatus MicroInterpreterGraph::InvokeSubgraph(int subgraph_idx) {
// prepare for the next call.
allocator_->ResetTempAllocations();

if (invoke_status == kTfLiteError) {
if (invoke_status != kTfLiteOk) {
MicroPrintf("Node %s (number %d) failed to invoke with status %d",
OpNameFromRegistration(registration), current_operator_index_,
invoke_status);
return kTfLiteError;
} else if (invoke_status != kTfLiteOk) {
return invoke_status;
}
}
Expand Down

0 comments on commit 2d52ab1

Please sign in to comment.