Skip to content

Commit 2c2a7ca

Browse files
align the lint check
1 parent f2115fc commit 2c2a7ca

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/scripts/op_perf_comparison.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def display_comparison(results, threshold, xpu_file, compare_both):
114114
# Print results
115115
if regression_records:
116116
print("\n🔴 Regression:")
117-
regression_display = [r for r in display_records
117+
regression_display = [r for r in display_records
118118
if r['Case Name'] in [x['case_name'] for x in regression_records]]
119119
print(tabulate(
120120
regression_display,
@@ -126,7 +126,7 @@ def display_comparison(results, threshold, xpu_file, compare_both):
126126

127127
if improvement_records:
128128
print("\n🟢 Improvement:")
129-
improvement_display = [r for r in display_records
129+
improvement_display = [r for r in display_records
130130
if r['Case Name'] in [x['case_name'] for x in improvement_records]]
131131
print(tabulate(
132132
improvement_display,
@@ -187,7 +187,7 @@ def prepare_df(df):
187187

188188
for record, source in [(records_xpu, 'xpu'), (records_baseline, 'baseline')]:
189189
for r in record:
190-
key = tuple((k, str(v)) for k, v in r.items()
190+
key = tuple((k, str(v)) for k, v in r.items()
191191
if k not in ['time(us)', 'E2E total time(us)', 'E2E forward time(us)'])
192192

193193
for time_type in ['profile', 'e2e']:
@@ -202,7 +202,7 @@ def prepare_df(df):
202202

203203
results = []
204204
compare_both = not profile_only and not e2e_only
205-
all_keys = set().union(*[set(data_dict[s][t].keys())
205+
all_keys = set().union(*[set(data_dict[s][t].keys())
206206
for s in data_dict for t in data_dict[s]])
207207

208208
for key in all_keys:
@@ -262,9 +262,9 @@ def main():
262262
parser.add_argument('-b', '--baseline_file', required=True, help="XPU OP baseline result csv files dir")
263263
parser.add_argument('-t', '--threshold', type=float, default=0.10,
264264
help='Threshold for time difference (default: 0.10 for 10%)')
265-
parser.add_argument('--profile-only', action='store_true',
265+
parser.add_argument('--profile-only', action='store_true',
266266
help='Only compare profile time (time(us))')
267-
parser.add_argument('--e2e-only', action='store_true',
267+
parser.add_argument('--e2e-only', action='store_true',
268268
help='Only compare E2E time (E2E total time(us))')
269269
args = parser.parse_args()
270270

0 commit comments

Comments
 (0)