Skip to content

Commit a89b858

Browse files
authored
Arm backend: Fix off by one bug in print from arm_executor_runner (#14120)
The arm executor runner has ET_NUM_INFERENCES set to 1 by default but the print after run stated it has done 2 runs. The for loop doing the execution started on 1 and checked with <= causing the num_inferences to tick over by one. Signed-off-by: [email protected]
1 parent fbdee8f commit a89b858

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/arm/executor_runner/arm_executor_runner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ void run_model(RunnerContext& ctx, const void* model_pte) {
930930

931931
int n = 0;
932932
StartMeasurements();
933-
for (n = 1; n <= num_inferences; n++) {
933+
for (n = 0; n < num_inferences; n++) {
934934
// Run the model.
935935
status = ctx.method.value()->execute();
936936
if (status != Error::Ok) {

0 commit comments

Comments
 (0)