Skip to content

Commit 0d04282

Browse files
committed
update pipeline benchmark table header (#4474)
1 parent aedcfbd commit 0d04282

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

paddlex/inference/utils/benchmark.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -567,13 +567,13 @@ def print_detail_data(self):
567567
detail_head = [
568568
"Step",
569569
"Operation",
570-
"Time",
570+
"Time (ms)",
571571
]
572572
table = PrettyTable(detail_head)
573573
table.add_rows(self._detail_list)
574574
table_title = "Detail Data".center(len(str(table).split("\n")[0]), " ")
575575
table.align["Operation"] = "l"
576-
table.align["Time"] = "l"
576+
table.align["Time (ms)"] = "l"
577577
logging.info(table_title)
578578
logging.info(table)
579579

@@ -582,13 +582,13 @@ def print_summary_data(self):
582582
summary_head = [
583583
"Level",
584584
"Operation",
585-
"Time",
585+
"Time (ms)",
586586
]
587587
table = PrettyTable(summary_head)
588588
table.add_rows(self._summary_list)
589589
table_title = "Summary Data".center(len(str(table).split("\n")[0]), " ")
590590
table.align["Operation"] = "l"
591-
table.align["Time"] = "l"
591+
table.align["Time (ms)"] = "l"
592592
logging.info(table_title)
593593
logging.info(table)
594594

@@ -600,7 +600,7 @@ def save_pipeline_data(self, save_path):
600600
detail_head = [
601601
"Step",
602602
"Operation",
603-
"Time",
603+
"Time (ms)",
604604
]
605605
csv_data = [detail_head, *self._detail_list]
606606
with open(Path(save_dir) / "detail.csv", "w", newline="") as file:
@@ -610,7 +610,7 @@ def save_pipeline_data(self, save_path):
610610
summary_head = [
611611
"Level",
612612
"Operation",
613-
"Time",
613+
"Time (ms)",
614614
]
615615
csv_data = [summary_head, *self._summary_list]
616616
with open(Path(save_dir) / "summary.csv", "w", newline="") as file:

0 commit comments

Comments
 (0)