Skip to content

Conversation

@heagenb03
Copy link

Adds with torch.no_grad(): to lines 59, 176, and 287
Removes unnecessary gradient calculations/storage during propagation
Reduces peak memory consumption from ~50GB to ~19GB

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