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

Method __init__

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

Source from the content-addressed store, hash-verified

252
253class ResidualBlock(nn.Module):
254 def __init__(self, *main, skip=None):
255 super().__init__()
256 self.main = nn.Sequential(*main)
257 self.skip = skip if skip else nn.Identity()
258
259 def forward(self, input):
260 return self.main(input) + self.skip(input)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected