You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by gi...@git.apache.org on 2017/09/20 11:34:36 UTC
[GitHub] edmBernard opened a new issue #7964: Gradient accumulation of several sample
edmBernard opened a new issue #7964: Gradient accumulation of several sample
URL: https://github.com/apache/incubator-mxnet/issues/7964
I search to compute a triplet ranking loss.
To achieve this, I need to accumulate gradient through several example and update weight with the resulting gradient.
In chainer we can easily do that because backward function accumulate gradient by default :
> We need to clear the gradients first because the backward() method accumulates gradients instead of overwriting the previous values.
Is there a way to do this with Mxnet Gluon and the autograd API ?
That similar to gradient accumulation inside a batch.
----------------------------------------------------------------
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