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 2020/03/23 14:58:01 UTC

[GitHub] [incubator-mxnet] nicklhy commented on issue #17863: Inconsistent results in gluon.nn.BatchNorm with autograd.record()

nicklhy commented on issue #17863: Inconsistent results in gluon.nn.BatchNorm with autograd.record()
URL: https://github.com/apache/incubator-mxnet/issues/17863#issuecomment-602652408
 
 
   I guess this is the expected result. In training mode, BN calculates the mean and variance of batch data first. And since you set momentum as 0, the data_mean is exactly the input data. Thus, you will get an output of all zeros here.
   
   You can refer the [doc](https://mxnet.incubator.apache.org/api/python/docs/api/ndarray/ndarray.html#mxnet.ndarray.BatchNorm) of BN for details.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services