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 2017/11/26 00:12:48 UTC
[GitHub] piiswrong commented on issue #8816: Example of debugging gradient of op in HybridBlock
piiswrong commented on issue #8816: Example of debugging gradient of op in HybridBlock
URL: https://github.com/apache/incubator-mxnet/issues/8816#issuecomment-346974794
automatic nan check is a good feature we can add.
For now you can use
```
for p in net.collect_params():
for g in p.list_grads():
assert not np.any(np.isnan(g.asnumpy()))
```
----------------------------------------------------------------
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