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

Method __init__

models/transformer/wan/modules/tm2m_model.py:237–241  ·  view source on GitHub ↗
(self, dim, eps=1e-5)

Source from the content-addressed store, hash-verified

235class WanRMSNorm(nn.Module):
236
237 def __init__(self, dim, eps=1e-5):
238 super().__init__()
239 self.dim = dim
240 self.eps = eps
241 self.weight = nn.Parameter(torch.ones(dim))
242
243 def forward(self, x):
244 return self._norm(x.float()).type_as(x) * self.weight

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected