Merge pull request #399 from baryluk/patch-3

Fix a typo in benchmark when running fp 16 vs 32
pull/400/head
Cedric Nugteren 2020-10-04 16:43:21 +02:00 committed by GitHub
commit 3462d7fa85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ def run_benchmark(name, arguments_list, precision, num_runs, platform, device, c
all_arguments = [arg if arg != "-precision 16" else "-precision 32" for arg in all_arguments]
benchmark_output = utils.run_binary(binary, all_arguments)
result_extra = utils.parse_results(benchmark_output)
for index in range(len(min(result, result_extra))):
for index in range(min(len(result), len(result_extra))):
result[index]["GBs_1_FP32"] = result_extra[index]["GBs_1"]
result[index]["GFLOPS_1_FP32"] = result_extra[index]["GFLOPS_1"]
for id in COMPARISON_IDS: