pytorch int32 to int64 conversion
I'm trying to convert a simple image mask to int64
image = np.array([[1, 2], [3, 4]], dtype='int32')

transform = Compose([
    torch.from_numpy, 
    ConvertImageDtype(torch.int64)
])

However, transform(image) yields
tensor([[ 4294967296,  8589934592],
        [12884901888, 17179869184]])

Is there something wrong, or am I fundamentally misunderstanding something about how the conversion should work?

If you skip torch's conversion, the image is transformed correctly.
image = np.array([[1, 2], [3, 4]], dtype='int64')

transform = Compose([
    torch.from_numpy
])
transform(image)
# tensor([[1, 2],
#        [3, 4]])

