What happens to the tensor when I change its type from Float to Long
image1104×797 91.5 KB
This is supposed to be a segmentation mask of an image, and it gets completely wrecked when I change it to LongTensor.