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

Class LayerNorm

wan/models/wan_image_encoder.py:49–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47
48
49class LayerNorm(nn.LayerNorm):
50
51 def forward(self, x):
52 return super().forward(x.float()).type_as(x)
53
54
55class SelfAttention(nn.Module):

Callers 3

__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected