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

Method __init__

diffsynth/models/kolors_text_encoder.py:440–443  ·  view source on GitHub ↗
(self, normalized_shape, eps=1e-5, device=None, dtype=None, **kwargs)

Source from the content-addressed store, hash-verified

438
439class RMSNorm(torch.nn.Module):
440 def __init__(self, normalized_shape, eps=1e-5, device=None, dtype=None, **kwargs):
441 super().__init__()
442 self.weight = torch.nn.Parameter(torch.empty(normalized_shape, device=device, dtype=dtype))
443 self.eps = eps
444
445 def forward(self, hidden_states: torch.Tensor):
446 input_dtype = hidden_states.dtype

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected