MCPcopy Create free account
hub / github.com/OpenImagingLab/FlashVSR / create_custom_forward

Method create_custom_forward

diffsynth/models/cog_dit.py:302–305  ·  view source on GitHub ↗
(module)

Source from the content-addressed store, hash-verified

300 prompt_emb = self.context_embedder(prompt_emb)
301
302 def create_custom_forward(module):
303 def custom_forward(*inputs):
304 return module(*inputs)
305 return custom_forward
306
307 for block in self.blocks:
308 if self.training and use_gradient_checkpointing:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected