MCPcopy Create free account
hub / github.com/OpenImagingLab/FlashVSR / __init__

Method __init__

diffsynth/models/flux_dit.py:191–195  ·  view source on GitHub ↗
(self, dim)

Source from the content-addressed store, hash-verified

189
190class AdaLayerNormSingle(torch.nn.Module):
191 def __init__(self, dim):
192 super().__init__()
193 self.silu = torch.nn.SiLU()
194 self.linear = torch.nn.Linear(dim, 3 * dim, bias=True)
195 self.norm = torch.nn.LayerNorm(dim, elementwise_affine=False, eps=1e-6)
196
197
198 def forward(self, x, emb):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected