You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now pytorch checkpoint loading just uses torch.load(${file}).
There are some cases, such as where the checkpoint was saved with GPU tensors that we probably need to add map_location=torch.device("cpu"). Similarly there was a checkpoint where a .detach() call was needed before the .numpy() call.
I think we just need to add things like this to make sure we can always get to CPU tensors and then numpy arrays, unless there are cases where we would want things to live on the GPU?
The text was updated successfully, but these errors were encountered:
Right now pytorch checkpoint loading just uses
torch.load(${file})
.There are some cases, such as where the checkpoint was saved with GPU tensors that we probably need to add
map_location=torch.device("cpu")
. Similarly there was a checkpoint where a.detach()
call was needed before the.numpy()
call.I think we just need to add things like this to make sure we can always get to CPU tensors and then numpy arrays, unless there are cases where we would want things to live on the GPU?
The text was updated successfully, but these errors were encountered: