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

Method create_custom_forward

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

Source from the content-addressed store, hash-verified

233 if self.training and self.gradient_checkpointing:
234
235 def create_custom_forward(module):
236 def custom_forward(*inputs):
237 return module(*inputs)
238
239 return custom_forward
240
241 if is_torch_version(">=", "1.11.0"):
242 # middle

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected