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 2018/07/21 22:29:49 UTC
[GitHub] haojin2 commented on a change in pull request #11850: Support 1D
inputs in leaky relu
haojin2 commented on a change in pull request #11850: Support 1D inputs in leaky relu
URL: https://github.com/apache/incubator-mxnet/pull/11850#discussion_r204223243
##########
File path: tests/python/unittest/test_operator.py
##########
@@ -748,7 +748,8 @@ def fleaky_relu_grad(grad, x, y, act_type, slope=0.25):
elif act_type == 'leaky':
out[neg_indices] = slope
return out * grad
- shape = (3, 4)
+ ndim = random.randint(1, 4)
Review comment:
ok, done.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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