Skip to content

Commit

Permalink
LLM: small fix for the html script (#10094)
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiguangHan authored Feb 5, 2024
1 parent d9d496c commit ef20adb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/llm/test/benchmark/csv_to_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def highlight_vals(val, max=3.0, color1='red', color2='green'):
return ''

def nonzero_min(lst):
non_zero_lst = [num for num in lst if num >= 0.0]
non_zero_lst = [num for num in lst if num > 0.0]
return min(non_zero_lst) if non_zero_lst else None

def is_diffs_within_normal_range(diff1, diff2, threshold=5.0):
Expand Down

0 comments on commit ef20adb

Please sign in to comment.