PyTorch Forums
Out of memory during torch.save
utsav
(Utsav Garg)
August 19, 2017, 5:50am
2
Shifting the model to CPU before saving and moving it back to GPU after saving solved it.
4 Likes
CUDA out of memory when calling model.state_dict()
show post in topic