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 2020/02/10 21:43:00 UTC
[GitHub] [incubator-mxnet] connorgoggins commented on a change in pull
request #17542: [OpPerf] Add norm, cast ops, remaining optimizer ops
connorgoggins commented on a change in pull request #17542: [OpPerf] Add norm, cast ops, remaining optimizer ops
URL: https://github.com/apache/incubator-mxnet/pull/17542#discussion_r377333553
##########
File path: benchmark/opperf/utils/ndarray_utils.py
##########
@@ -44,10 +42,14 @@ def nd_forward_backward_and_profile(op, runs, *args, **kwargs):
"""
for _ in range(runs):
with mx.autograd.record():
- if not isinstance(args[0], nd.NDArray):
- res = op(**kwargs)
- else:
+ args = []
+ for key in kwargs:
+ if key.startswith("args"):
+ args.append(kwargs.pop(key))
Review comment:
I thought we fixed this?
----------------------------------------------------------------
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