MCPcopy Create free account
hub / github.com/Shakker-Labs/RepText / _set_gradient_checkpointing

Method _set_gradient_checkpointing

controlnet_flux.py:178–180  ·  view source on GitHub ↗
(self, module, value=False)

Source from the content-addressed store, hash-verified

176 fn_recursive_attn_processor(name, module, processor)
177
178 def _set_gradient_checkpointing(self, module, value=False):
179 if hasattr(module, "gradient_checkpointing"):
180 module.gradient_checkpointing = value
181
182 @classmethod
183 def from_transformer(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected