MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / __init__

Method __init__

k_diffusion/models/modules.py:166–169  ·  view source on GitHub ↗
(self, shape, eps=1e-6)

Source from the content-addressed store, hash-verified

164
165class RMSNorm(nn.Module):
166 def __init__(self, shape, eps=1e-6):
167 super().__init__()
168 self.eps = eps
169 self.scale = nn.Parameter(torch.ones(shape))
170
171 def extra_repr(self):
172 return f"shape={tuple(self.scale.shape)}, eps={self.eps}"

Callers 15

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected