MCPcopy Create free account
hub / github.com/Francis-Rings/FlashPortrait / __init__

Method __init__

wan/models/wan_text_encoder.py:45–49  ·  view source on GitHub ↗
(self, dim, eps=1e-6)

Source from the content-addressed store, hash-verified

43
44class T5LayerNorm(nn.Module):
45 def __init__(self, dim, eps=1e-6):
46 super(T5LayerNorm, self).__init__()
47 self.dim = dim
48 self.eps = eps
49 self.weight = nn.Parameter(torch.ones(dim))
50
51 def forward(self, x):
52 x = x * torch.rsqrt(x.float().pow(2).mean(dim=-1, keepdim=True) +

Callers 6

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected