MCPcopy Create free account
hub / github.com/MotrixLab/ViMoGen / WanLayerNorm

Class WanLayerNorm

models/transformer/wan/modules/t2m_model.py:249–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247
248
249class WanLayerNorm(nn.LayerNorm):
250
251 def __init__(self, dim, eps=1e-6, elementwise_affine=False):
252 super().__init__(dim, elementwise_affine=elementwise_affine, eps=eps)
253
254 def forward(self, x):
255 return super().forward(x.float()).type_as(x)
256
257
258class WanSelfAttention(nn.Module):

Callers 2

__init__Method · 0.70
__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected