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

Method __init__

models/transformer/wan/modules/t5.py:55–59  ·  view source on GitHub ↗
(self, dim, eps=1e-6)

Source from the content-addressed store, hash-verified

53class T5LayerNorm(nn.Module):
54
55 def __init__(self, dim, eps=1e-6):
56 super(T5LayerNorm, self).__init__()
57 self.dim = dim
58 self.eps = eps
59 self.weight = nn.Parameter(torch.ones(dim))
60
61 def forward(self, x):
62 x = x * torch.rsqrt(x.float().pow(2).mean(dim=-1, keepdim=True) +

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected