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

Method create_custom_forward

diffsynth/models/sd3_dit.py:360–363  ·  view source on GitHub ↗
(module)

Source from the content-addressed store, hash-verified

358 hidden_states = self.pos_embedder(hidden_states)
359
360 def create_custom_forward(module):
361 def custom_forward(*inputs):
362 return module(*inputs)
363 return custom_forward
364
365 for block in self.blocks:
366 if self.training and use_gradient_checkpointing:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected