MCPcopy Create free account
hub / github.com/MeiGen-AI/MultiTalk / __init__

Method __init__

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

Source from the content-addressed store, hash-verified

58class T5LayerNorm(nn.Module):
59
60 def __init__(self, dim, eps=1e-6):
61 super(T5LayerNorm, self).__init__()
62 self.dim = dim
63 self.eps = eps
64 self.weight = nn.Parameter(torch.ones(dim))
65
66 def forward(self, x):
67 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