Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
chuanqi129 committed Sep 20, 2024
1 parent 4a607b6 commit 58e5f24
Show file tree
Hide file tree
Showing 2 changed files with 4,020 additions and 4,019 deletions.
7 changes: 4 additions & 3 deletions benchmarks/operator_benchmark/check_perf_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ def check_perf(actual_csv, expected_csv, expected_filename, threshold):
if expected_perf is None:
status = "FAIL"
print(
f"\n{case:34} {status:9} Not Found. if it is expected, you can update in {expected_filename} to reflect the new module. "
f"\n{case:34} {status:9} Not Found. if it is expected, \
you can update in {expected_filename} to reflect the new module. "
)
continue

speed_up = expected_perf / perf

if (1 - threshold) <= speed_up < (1 + threshold):
Expand Down Expand Up @@ -82,7 +83,7 @@ def main():
args = parser.parse_args()

actual = pd.read_csv(args.actual)
actual.drop_duplicates(subset=['Case Name'], keep='first', inplace=True)
actual.drop_duplicates(subset=["Case Name"], keep="first", inplace=True)
expected = pd.read_csv(args.expected)

failed, msg = check_perf(actual, expected, args.expected, args.threshold)
Expand Down
Loading

0 comments on commit 58e5f24

Please sign in to comment.