You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/08/24 22:33:34 UTC
[GitHub] [incubator-mxnet] access2rohit commented on a change in pull
request #15953: Add Median, p50, p99 to python profiler
access2rohit commented on a change in pull request #15953: Add Median,p50,p99 to python profiler
URL: https://github.com/apache/incubator-mxnet/pull/15953#discussion_r317376408
##########
File path: benchmark/opperf/utils/profiler_utils.py
##########
@@ -228,10 +232,16 @@ def python_profile(func):
@functools.wraps(func)
def python_profile_it(*args, **kwargs):
- start_time = time.perf_counter() # 1
- res = func(*args, **kwargs)
- end_time = time.perf_counter() # 2
- run_time = end_time - start_time # 3
+ runs = args[1]
+ modified_args = (args[0], 1, args[2])
Review comment:
Can you give an example case what are now sent in modified_args ?
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services