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

Method create_custom_forward

diffsynth/models/wan_video_dit.py:652–655  ·  view source on GitHub ↗
(module)

Source from the content-addressed store, hash-verified

650 ], dim=-1).reshape(f * h * w, 1, -1).to(x.device)
651
652 def create_custom_forward(module):
653 def custom_forward(*inputs):
654 return module(*inputs)
655 return custom_forward
656
657 # blocks
658 for block_id, block in enumerate(self.blocks):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected