MCPcopy Create free account
hub / github.com/DPS2022/diffusion-posterior-sampling / forward

Method forward

guided_diffusion/unet.py:367–368  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

365 self.proj_out = zero_module(conv_nd(1, channels, channels, 1))
366
367 def forward(self, x):
368 return checkpoint(self._forward, (x,), self.parameters(), True)
369
370 def _forward(self, x):
371 b, c, *spatial = x.shape

Callers

nothing calls this directly

Calls 1

checkpointFunction · 0.85

Tested by

no test coverage detected