MCPcopy Create free account
hub / github.com/CompVis/diff2flow / forward

Method forward

diff2flow/models/unet/openaimodel.py:317–319  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

315 self.proj_out = zero_module(conv_nd(1, channels, channels, 1))
316
317 def forward(self, x):
318 return checkpoint(self._forward, (x,), self.parameters(), True) # TODO: check checkpoint usage, is True # TODO: fix the .half call!!!
319 #return pt_checkpoint(self._forward, x) # pytorch
320
321 def _forward(self, x):
322 b, c, *spatial = x.shape

Callers

nothing calls this directly

Calls 1

checkpointFunction · 0.90

Tested by

no test coverage detected