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

Method __init__

k_diffusion/models/modules.py:179–183  ·  view source on GitHub ↗
(self, features, cond_features, eps=1e-6)

Source from the content-addressed store, hash-verified

177
178class AdaRMSNorm(nn.Module):
179 def __init__(self, features, cond_features, eps=1e-6):
180 super().__init__()
181 self.eps = eps
182 self.linear = apply_wd(zero_init(Linear(cond_features, features, bias=False)))
183 tag_module(self.linear, "mapping")
184
185 def extra_repr(self):
186 return f"eps={self.eps},"

Callers

nothing calls this directly

Calls 5

apply_wdFunction · 0.85
zero_initFunction · 0.85
LinearClass · 0.85
tag_moduleFunction · 0.85
__init__Method · 0.45

Tested by

no test coverage detected