MCPcopy Create free account
hub / github.com/MeiGen-AI/MultiTalk / forward

Method forward

wan/modules/vae.py:59–63  ·  view source on GitHub ↗

Fix bfloat16 support for nearest neighbor interpolation.

(self, x)

Source from the content-addressed store, hash-verified

57class Upsample(nn.Upsample):
58
59 def forward(self, x):
60 """
61 Fix bfloat16 support for nearest neighbor interpolation.
62 """
63 return super().forward(x.float()).type_as(x)
64
65
66class Resample(nn.Module):

Callers

nothing calls this directly

Calls 1

forwardMethod · 0.45

Tested by

no test coverage detected