haojin2 commented on a change in pull request #15169: Softmax with length
URL: https://github.com/apache/incubator-mxnet/pull/15169#discussion_r304655817
##########
File path: python/mxnet/test_utils.py
##########
@@ -1242,11 +1242,13 @@ def check_speed(sym, location=None, ctx=None, N=20,
grad_req=None, typ="whole",
exe.arg_dict.items()}
else:
assert isinstance(location, dict), "Expect dict, get \"location\"=%s"
%str(location)
- exe = sym.simple_bind(grad_req=grad_req, ctx=ctx,
- **{k: v.shape for k, v in location.items()})
+ # exe = sym.simple_bind(grad_req=grad_req, ctx=ctx,
+ # **{k: v.shape for k, v in location.items()})
+ exe = sym.bind(ctx=ctx, args=location, grad_req=grad_req)
- for name, iarr in location.items():
- exe.arg_dict[name][:] = iarr.astype(exe.arg_dict[name].dtype)
+ # for name, iarr in location.items():
Review comment:
unrelated changes accidentally committed, removed now.
----------------------------------------------------------------
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]
With regards,
Apache Git Services