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

Method __init__

k_diffusion/layers.py:289–292  ·  view source on GitHub ↗
(self, *main, skip=None)

Source from the content-addressed store, hash-verified

287
288class ConditionedResidualBlock(ConditionedModule):
289 def __init__(self, *main, skip=None):
290 super().__init__()
291 self.main = ConditionedSequential(*main)
292 self.skip = skip if skip else nn.Identity()
293
294 def forward(self, input, cond):
295 skip = self.skip(input, cond) if isinstance(self.skip, ConditionedModule) else self.skip(input)

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45

Tested by

no test coverage detected