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

Method __init__

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

Source from the content-addressed store, hash-verified

262
263class AdaLayerNormContinuous(torch.nn.Module):
264 def __init__(self, dim):
265 super().__init__()
266 self.silu = torch.nn.SiLU()
267 self.linear = torch.nn.Linear(dim, dim * 2, bias=True)
268 self.norm = torch.nn.LayerNorm(dim, eps=1e-6, elementwise_affine=False)
269
270 def forward(self, x, conditioning):
271 emb = self.linear(self.silu(conditioning))

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected