MCPcopy Create free account
hub / github.com/LTH14/rcg / forward

Method forward

pixel_generator/guided_diffusion/unet.py:296–297  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

294 self.proj_out = zero_module(conv_nd(1, channels, channels, 1))
295
296 def forward(self, x):
297 return checkpoint(self._forward, (x,), self.parameters(), True)
298
299 def _forward(self, x):
300 b, c, *spatial = x.shape

Callers

nothing calls this directly

Calls 1

checkpointFunction · 0.90

Tested by

no test coverage detected