openfold.utils.checkpointing¶
Functions
|
Chunk a list of blocks and run each chunk with activation checkpointing. |
- checkpoint_blocks(blocks, args, blocks_per_ckpt)¶
Chunk a list of blocks and run each chunk with activation checkpointing. We define a “block” as a callable whose only inputs are the outputs of the previous block.
Implements Subsection 1.11.8
- Parameters:
- Returns:
The output of the final block
- Return type:
- get_checkpoint_fn()¶