nihui opened a new pull request #18955:
URL: https://github.com/apache/incubator-mxnet/pull/18955


   The actual code applies epsilon addtion before square root, so fix the math 
equation
   
   reference src/operator/instance_norm-inl.h
   ```
       Assign(
           out, req[instance_norm::kOut],
           broadcast<0>(reshape(repmat(gamma, n), Shape1(n * c)), out.shape_) *
                   (data - broadcast<0>(mean, data.shape_)) /
                   F<mshadow_op::square_root>(
                       broadcast<0>(var + param_.eps, data.shape_)) +
               broadcast<0>(reshape(repmat(beta, n), Shape1(n * c)), 
out.shape_));
   ```
   


----------------------------------------------------------------
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]


Reply via email to