MCPcopy Create free account
hub / github.com/AlayaLab/Hive / create_custom_forward

Method create_custom_forward

models/flowsep/diffusers/models/vae.py:114–118  ·  view source on GitHub ↗
(module)

Source from the content-addressed store, hash-verified

112 if self.training and self.gradient_checkpointing:
113
114 def create_custom_forward(module):
115 def custom_forward(*inputs):
116 return module(*inputs)
117
118 return custom_forward
119
120 # down
121 if is_torch_version(">=", "1.11.0"):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected