RematΒΆ
Applies gradient checkpointing (rematerialization) to a function to save memory at the cost of compute.
Abstract Signature:
Remat(f: Callable)
PyTorch
API:
torch.utils.checkpoint.checkpointStrategy: Plugin (checkpoint_wrapper)