Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
"Trying to resize storage that is not resizable" when calling pin_memory() on some zero-dimensional tensors #15770
Got this error too when constructing a float32 tensor from float64 numpy array, torch.FloatTensor(array), torch.from_numpy(array).type(torch.float32) and torch.from_numpy(array.astype(np.float32)) all give this error. Constructing a float64 tensor instead seems fine. This seem a device specific issue.
Any plan on releasing the fix?