Skip to content

Commit

Permalink
Do not print error message on kTfLiteAbort status
Browse files Browse the repository at this point in the history
  • Loading branch information
andresovela committed Nov 13, 2024
1 parent 2d52ab1 commit 534a5d2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tensorflow/lite/micro/micro_interpreter_graph.cc
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,11 @@ TfLiteStatus MicroInterpreterGraph::InvokeSubgraph(int subgraph_idx) {
allocator_->ResetTempAllocations();

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

0 comments on commit 534a5d2

Please sign in to comment.