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

Method extra_repr

k_diffusion/models/modules.py:171–172  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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}"
173
174 def forward(self, x):
175 return rms_norm(x, self.scale, self.eps)

Callers 1

reprFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected