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:
[email protected]


With regards,
Apache Git Services

Reply via email to