CheXNet icon indicating copy to clipboard operation
CheXNet copied to clipboard

Fix "RuntimeError: CUDA Error: out of memory"

Open icekang opened this issue 3 years ago • 2 comments

Problem

According to this issue I also forked this repo and tried 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() should be presented.

icekang avatar Nov 15 '20 13:11 icekang

@icekang Thank you!! Changes worked fine and saved me debugging time.

ghost avatar Jul 03 '21 03:07 ghost

you are welcome :) if it works, please accept my pull request @arnoweng

icekang avatar Jul 10 '21 18:07 icekang