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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
