mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
Fix typo in _normalize ref (#137079)
I think this should basically make no difference numerically, but it does have some ramifications on things like CSE. Pull Request resolved: https://github.com/pytorch/pytorch/pull/137079 Approved by: https://github.com/Skylion007 ghstack dependencies: #136826, #137043, #137049, #137065
This commit is contained in:
parent
6374a19a6e
commit
2b329d3bf1
1 changed files with 1 additions and 1 deletions
|
|
@ -3140,7 +3140,7 @@ def _normalize(
|
|||
a_acc, dim=norm_dims, unbiased=False, keepdim=True
|
||||
)
|
||||
rstd = torch.rsqrt(biased_var + eps)
|
||||
out = (a - mean) * rstd
|
||||
out = (a_acc - mean) * rstd
|
||||
return out, mean, rstd
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue