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

Method __init__

diffsynth/models/sd3_dit.py:9–15  ·  view source on GitHub ↗
(self, dim, eps, elementwise_affine=True)

Source from the content-addressed store, hash-verified

7
8class RMSNorm(torch.nn.Module):
9 def __init__(self, dim, eps, elementwise_affine=True):
10 super().__init__()
11 self.eps = eps
12 if elementwise_affine:
13 self.weight = torch.nn.Parameter(torch.ones((dim,)))
14 else:
15 self.weight = None
16
17 def forward(self, hidden_states):
18 input_dtype = hidden_states.dtype

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected