update pre-commit config (#18860)

This commit is contained in:
SoluMilken
2026-02-16 00:18:31 +08:00
committed by GitHub
parent f7603203b0
commit 07a24f1a38
135 changed files with 239 additions and 198 deletions
+1 -1
View File
@@ -222,7 +222,7 @@ class TestLayerNorm(CustomTestCase):
x = x + residual.to(torch.float32)
residual = x.to(orig_dtype)
(variance, mean) = torch.var_mean(x, dim=-1, keepdim=True, correction=0)
variance, mean = torch.var_mean(x, dim=-1, keepdim=True, correction=0)
x = (x - mean) * torch.rsqrt(variance + variance_epsilon)
x = x.to(orig_dtype) * weight
if residual is None: