MCPcopy Create free account
hub / github.com/VisionXLab/OF-Diff / forward

Method forward

ldm/modules/diffusionmodules/openaimodel.py:315–317  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

checkpointFunction · 0.90

Tested by

no test coverage detected