[diffusion] optimize: preserve dtype in wanvae nearest upsample (#27077)

This commit is contained in:
Mick
2026-06-03 08:32:28 +08:00
committed by GitHub
parent c55548ba11
commit 83bc776612
@@ -211,6 +211,8 @@ class WanUpsample(nn.Upsample):
"""
def forward(self, x):
if current_platform.is_amp_supported():
return super().forward(x)
return super().forward(x.float()).type_as(x)