Open tau-yihouxiang opened 2 years ago
Hi! Turned out the problem was during printing G's summary. Looks like even using torch.no_grad()
context does not help — likely due to some hooks inside the print_module_summary(...)
function. I reduced the batch size for the call in this commit, so it should help (it did help me locally to resolve the problem). Thank you for reporting the issue!
I have run the source code and it works! I wonder how should I reduce the initial peak gpu memory, so that I can increase the resolution to 512. Thank you in advance!