PyTorch Forums
On a cpu device, how to load checkpoint saved on gpu device
Towsif_Ahamed
(Towsif Ahamed)
May 15, 2020, 11:36am
22
torch.load(WEIGHTS_FILE, map_location=torch.device(‘cpu’) )
show post in topic