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

Method forward

diffsynth/models/hunyuan_dit.py:56–58  ·  view source on GitHub ↗
(self, inputs)

Source from the content-addressed store, hash-verified

54
55class FP32_Layernorm(torch.nn.LayerNorm):
56 def forward(self, inputs):
57 origin_dtype = inputs.dtype
58 return torch.nn.functional.layer_norm(inputs.float(), self.normalized_shape, self.weight.float(), self.bias.float(), self.eps).to(origin_dtype)
59
60
61class FP32_SiLU(torch.nn.SiLU):

Callers

nothing calls this directly

Calls 1

toMethod · 0.45

Tested by

no test coverage detected