MCPcopy Create free account
hub / github.com/Francis-Rings/FlashPortrait / forward

Method forward

wan/models/wan_vae.py:63–67  ·  view source on GitHub ↗

Fix bfloat16 support for nearest neighbor interpolation.

(self, x)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

forwardMethod · 0.45

Tested by

no test coverage detected