Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix "RuntimeError: CUDA Error: out of memory"
# Problem According to this [issue](arnoweng#27) I also forked this repo and try running on my Colab project. The same problem arose: `RuntimeError: CUDA Error: out of memory`. # Solution As far as my knowledge, the problem happened because some section did not require `grad` yet still did anyway. Thus, [`with no_grad()`](https://pytorch.org/docs/stable/generated/torch.no_grad.html) should be presented.
- Loading branch information