RoseTTAFold-All-Atom/rf2aa/training/checkpoint.py

6 lines
174 B
Python
Raw Permalink Normal View History

2024-03-05 06:38:17 +00:00
# for gradient checkpointing
def create_custom_forward(module, **kwargs):
def custom_forward(*inputs):
return module(*inputs, **kwargs)
return custom_forward