Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Joaquin Anton Guirao <[email protected]>
  • Loading branch information
jantonguirao committed Nov 26, 2024
1 parent 2de2edd commit a50a5f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal_tools/hw_decoder_bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ def vit_pipeline(is_training=False, image_shape=(384, 384, 3), num_classes=1000)
iter_duration = iter_end_time - iter_start_time
execution_times.append(iter_duration)

if args.print_every_n_iterations > 0 and iteration % args.print_every_n_iterations == 0:
if args.print_every_n_iterations > 0 and (iteration % args.print_every_n_iterations == 0 or iteration == 0 or iteration == test_iterations - 1):
elapsed_time = time.perf_counter() - start_time
throughput = (iteration + 1) * args.batch_size * args.gpu_num / elapsed_time
mean_t = statistics.mean(execution_times)
Expand Down

0 comments on commit a50a5f7

Please sign in to comment.