[diffusion] fix: fix accuracy bug caused by #14717 (#18296)

This commit is contained in:
陈一涵
2026-02-05 20:36:18 +08:00
committed by GitHub
parent 8f8c1724ae
commit 4aa03d91fd
3 changed files with 6 additions and 6 deletions

View File

@@ -51,7 +51,7 @@ class RMSNorm(CustomOp):
var_hidden_size: Optional[int] = None,
) -> None:
super().__init__()
self.weight = nn.Parameter(torch.ones(hidden_size, dtype=dtype))
self.weight = nn.Parameter(torch.ones(hidden_size))
self.variance_epsilon = eps
self.hidden_size = hidden_size
self.variance_size_override = (