MCPcopy Create free account
hub / github.com/TencentARC/BrushNet / create_custom_forward

Method create_custom_forward

src/diffusers/models/autoencoders/vae.py:147–151  ·  view source on GitHub ↗
(module)

Source from the content-addressed store, hash-verified

145 if self.training and self.gradient_checkpointing:
146
147 def create_custom_forward(module):
148 def custom_forward(*inputs):
149 return module(*inputs)
150
151 return custom_forward
152
153 # down
154 if is_torch_version(">=", "1.11.0"):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected