Skip to content

Change the checkpoint code - #537

Open
DayForSunshine wants to merge 2 commits into
milesial:masterfrom
DayForSunshine:master
Open

Change the checkpoint code#537
DayForSunshine wants to merge 2 commits into
milesial:masterfrom
DayForSunshine:master

Conversation

@DayForSunshine

Copy link
Copy Markdown

torch.utils.checkpoint is a module, not a function that can be called directly—the actual checkpoint function is torch.utils.checkpoint.checkpoint. The object wrapped by checkpoint should be a “specific forward pass” (function + input), rather than simply replacing the entire self.inc nn.Module object—the checkpointing mechanism must know what the input is in order to recompute the forward pass during backpropagation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant