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

Class WanLayerNorm

models/transformer/wan/modules/tm2m_model.py:250–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 3

__init__Method · 0.70
__init__Method · 0.70
__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected