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

Method forward

k_diffusion/layers.py:442–449  ·  view source on GitHub ↗
(self, input, cond)

Source from the content-addressed store, hash-verified

440 self.skip_stages = skip_stages
441
442 def forward(self, input, cond):
443 skips = []
444 for block in self.d_blocks[self.skip_stages:]:
445 input = block(input, cond)
446 skips.append(input)
447 for i, (block, skip) in enumerate(zip(self.u_blocks, reversed(skips))):
448 input = block(input, cond, skip if i > 0 else None)
449 return input

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected