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

Method create_custom_forward

diffsynth/models/flux_dit.py:442–445  ·  view source on GitHub ↗
(module)

Source from the content-addressed store, hash-verified

440 attention_mask = None
441
442 def create_custom_forward(module):
443 def custom_forward(*inputs):
444 return module(*inputs)
445 return custom_forward
446
447 for block in self.blocks:
448 if self.training and use_gradient_checkpointing:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected