Cast ScalarImage and LabelMap 'dtype' To A Different Tensor Type #614
-
Hi, I've been working on a segmentation task using TorchIO. I've been trying to train a model but I keep on receiving the following error:
If I examine a ScalarImage using
Is there a way to cast the dtype of a ScalarImage and LabelMap from torch.FloatTensor to torch.ShortTensor? If there aren't any solutions within TorchIO, are there any other solutions that may work? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi, @washieuanan. What were you trying to do? Can you post the full error traceback? |
Beta Was this translation helpful? Give feedback.
Hi, @washieuanan. What were you trying to do? Can you post the full error traceback?