Skip to content

Commit badedc2

Browse files
authored
Merge pull request #462 from mlcommons/none_fix
Fix None issue
2 parents 514f9b1 + 97cad09 commit badedc2

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

mlperf_logging/result_summarizer/result_summarizer.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -591,9 +591,10 @@ def _compute_strong_scaling_scores(desc, system_folder, usage, ruleset, division
591591
detailed_bechmark_scores[f"{benchmark}:RCP"] = benchmark_rcp
592592
if power_score is not None:
593593
detailed_bechmark_scores[f"{benchmark}:Energy"] = power_score
594-
benchmark_scores[f"{benchmark}"] = float(
595-
score
596-
)
594+
if score is not None:
595+
benchmark_scores[f"{benchmark}"] = float(
596+
score
597+
)
597598
_fill_empty_benchmark_scores(benchmark_scores, usage, ruleset, detailed=False)
598599
_fill_empty_benchmark_scores(detailed_bechmark_scores, usage, ruleset, detailed=True)
599600
return benchmark_scores, detailed_bechmark_scores

0 commit comments

Comments
 (0)