PyTorch Forums
Why CUDA runs out of memory when calling torch.save?
bfortuner
(Brendan Fortuner)
June 2, 2017, 10:24pm
4
+1. I had the same problem and moving the model to cpu before saving also worked.
CUDA out of memory when calling model.state_dict()
show post in topic