This is an automated email from the ASF dual-hosted git repository. apeforest pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
The following commit(s) were added to refs/heads/master by this push: new 1906eff [OpPerf] Fixed Python profiler bug (#17642) 1906eff is described below commit 1906eff6b8a1eb96903f61583e722d1819ac657e Author: Connor Goggins <cgoggi...@gmail.com> AuthorDate: Tue Feb 25 22:25:41 2020 -0800 [OpPerf] Fixed Python profiler bug (#17642) * Changed arg structure in op func call * Length check to prevent index out of bounds error * Dropping args[2] as it is no longer used (only using kwargs) --- benchmark/opperf/utils/profiler_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmark/opperf/utils/profiler_utils.py b/benchmark/opperf/utils/profiler_utils.py index e795a3a..76ab90e 100644 --- a/benchmark/opperf/utils/profiler_utils.py +++ b/benchmark/opperf/utils/profiler_utils.py @@ -248,7 +248,7 @@ def python_profile(func): @functools.wraps(func) def python_profile_it(*args, **kwargs): runs = args[1] - modified_args = (args[0], 1, args[2]) + modified_args = (args[0], 1) times = [] for _ in range(runs):