ConvolutedDog opened a new pull request, #19643:
URL: https://github.com/apache/tvm/pull/19643

   This PR will fix https://github.com/apache/tvm/issues/19592.
   
   LayerNorm could produce NaN on large-value, small-variance inputs due to 
catastrophic cancellation in var = E[x^2] - E[x]^2.
   
   Switch to a numerically stable two-pass formulation:
   
     - pass1 computes mean via sum(x) / N
     - pass2 computes variance via sum((x - mean)^2) / N


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

Reply via email to