Enable memory checkpointing

This commit is contained in:
James Betker 2020-09-11 08:44:29 -06:00
parent 5189b11dac
commit 8c469b8286

View File

@ -11,7 +11,7 @@ from torch.utils.checkpoint import checkpoint
# Set to true to relieve memory pressure by using torch.utils.checkpoint in several memory-critical locations. # Set to true to relieve memory pressure by using torch.utils.checkpoint in several memory-critical locations.
memory_checkpointing_enabled = False memory_checkpointing_enabled = True
# VGG-style layer with Conv(stride2)->BN->Activation->Conv->BN->Activation # VGG-style layer with Conv(stride2)->BN->Activation->Conv->BN->Activation