MCPcopy Create free account
hub / github.com/OpenImagingLab/FlashVSR / forward

Method forward

diffsynth/models/wan_video_vae.py:76–80  ·  view source on GitHub ↗

Fix bfloat16 support for nearest neighbor interpolation.

(self, x)

Source from the content-addressed store, hash-verified

74class Upsample(nn.Upsample):
75
76 def forward(self, x):
77 """
78 Fix bfloat16 support for nearest neighbor interpolation.
79 """
80 return super().forward(x.float()).type_as(x)
81
82
83class Resample(nn.Module):

Callers

nothing calls this directly

Calls 1

forwardMethod · 0.45

Tested by

no test coverage detected