You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mxnet.apache.org by GitBox <gi...@apache.org> on 2021/12/10 14:41:49 UTC
[GitHub] [incubator-mxnet] leezu commented on issue #17925: any.h:286: Check failed: type_ != nullptr The any container is empty requested=N5mxnet10Imperative6AGInfoE
leezu commented on issue #17925:
URL: https://github.com/apache/incubator-mxnet/issues/17925#issuecomment-991028840
Closing as a duplicate of https://github.com/apache/incubator-mxnet/issues/9712
Please use `autograd.backward(losses)`
instead of
```
for loss in losses:
loss.backward()
```
Another option is to use `loss.backward(retain_graph=True)`
--
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.
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org