Open pennywise86hw opened 4 years ago
I am also getting the same error tried both 4GB and 16GB GPUs. Any solution?
Comment out the lines where you the spatial gradients are being computed for visualization. That reduced my memory usage to less than 4GB.
Could you elaborate more? I couldn't find any lines that were not necessary for the loss computation.
I've found it.
Simply comment out summary_fn(...)
in training.py
. Something in write_helmholtz_summary(...)
is eating a lot of memory.
What are the minimal memory requirements for train_wave_equation.py? I am trying to run it on my gpu with 16GB memory, but consistently getting cuda OOM..