It seems that ToPILImage doesn’t accept Int64 input tensors.
If you just want to resize the numpy array, you could also use a skimage or opencv method (which might accept this data type) instead of transforming the tensor to a PIL.Image and back to a tensor.