Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code Speedup #34

Merged
merged 2 commits into from
May 29, 2020
Merged

Code Speedup #34

merged 2 commits into from
May 29, 2020

Conversation

shubhamagarwal92
Copy link
Contributor

Related to #25

Fix to speed up the code and to avoid memory leak on other GPU:

  1. Do torch.cuda.set_device(device) before torch.cuda.empty_cache()
  2. torch.cuda.empty_cache() after every epoch instead of every batch

@abhshkdz abhshkdz merged commit 3bdfbf3 into batra-mlp-lab:master May 29, 2020
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.

2 participants