Skip to content

Commit 38bd3b7

Browse files
committed
fix: Address review comment
1 parent 2cd9670 commit 38bd3b7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tools/perf/perf_run.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,8 +593,10 @@ def recordStats(backend, timings, precision, batch_size=1, compile_time_s=None):
593593
# Generate report
594594
print("Model Summary: ", model_name)
595595
summary = pd.DataFrame(results)
596-
summary["model_name"] = (
597-
model_name_torch if model_name_torch is not None else model_name
596+
summary.insert(
597+
loc=0,
598+
column="model_name",
599+
value=(model_name_torch if model_name_torch is not None else model_name),
598600
)
599601
print(summary)
600602
if args.report:

0 commit comments

Comments
 (0)