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
Handle undefined tensor in blob correctly. (pytorch#12125)
Summary:
You can't GetDeviceType an undefined tensor, so test for this case
first. This allows you to safely move tensors out of blobs.
Signed-off-by: Edward Z. Yang <[email protected]>
Pull Request resolved: pytorch#12125
Reviewed By: smessmer
Differential Revision: D10080075
Pulled By: ezyang
fbshipit-source-id: bb99b089b6daa9d4db99015208f939d7ce4d4a79
0 commit comments