comaniac commented on a change in pull request #7779:
URL: https://github.com/apache/tvm/pull/7779#discussion_r605268380
##########
File path: python/tvm/driver/tvmc/runner.py
##########
@@ -455,13 +455,15 @@ def format_times(times):
"""
# timestamps
- mean_ts = np.mean(times)
- std_ts = np.std(times)
- max_ts = np.max(times)
- min_ts = np.min(times)
+ mean_ts = np.mean(times) * 1000
+ std_ts = np.std(times) * 1000
+ max_ts = np.max(times) * 1000
+ min_ts = np.min(times) * 1000
header = "Execution time summary:\n{0:^10} {1:^10} {2:^10} {3:^10}".format(
- "mean (s)", "max (s)", "min (s)", "std (s)"
+ "mean (ms)", "max (ms)", "min (ms)", "std (ms)"
)
- stats = "{0:^10.5f} {1:^10.5f} {2:^10.5f} {3:^10.5f}".format(mean_ts,
max_ts, min_ts, std_ts)
+ stats = "{0:^10.2f} {1:^10.2f} {2:^10.2f} {3:^10.2f}".format(mean_ts,
max_ts, min_ts, std_ts)
+
+ print("%s\n%s\n" % (header, stats))
Review comment:
Why print?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]