MCPcopy Create free account
hub / github.com/Francis-Rings/MotionFollower / create_custom_forward

Method create_custom_forward

src/models/unet_3d_blocks.py:899–903  ·  view source on GitHub ↗
(module)

Source from the content-addressed store, hash-verified

897 if self.training and self.gradient_checkpointing:
898
899 def create_custom_forward(module):
900 def custom_forward(*inputs):
901 return module(*inputs)
902
903 return custom_forward
904
905 hidden_states = torch.utils.checkpoint.checkpoint(
906 create_custom_forward(resnet), hidden_states, temb

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected