Skip to content

Commit 4a78f83

Browse files
committed
Add comment explaining sorting
1 parent 68add27 commit 4a78f83

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

benchmarks/decoders/benchmark_decoders_library.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,7 @@ def run_benchmarks(
853853
# are using different random pts values across videos.
854854
random_pts_list = (torch.rand(num_samples) * duration).tolist()
855855

856+
# The decoder items are sorted to perform and display the benchmarks in a consistent order.
856857
for decoder_name, decoder in sorted(decoder_dict.items(), key=lambda x: x[0]):
857858
print(f"video={video_file_path}, decoder={decoder_name}")
858859

0 commit comments

Comments
 (0)