medicaltorch icon indicating copy to clipboard operation
medicaltorch copied to clipboard

Invalid argument 0: Sizes of tensors must match except in dimension 1. Got 173 and 172 in dimension 2

Open hagsmand1 opened this issue 4 years ago • 0 comments

I try to resample input from torch.Size([2, 1, 512, 512]) to torch.Size([2, 1, 256, 256]) but that error occurred when get concat I don't understand why the y(x3) have this size torch.Size([2, 128, 173, 173]) I have print out (x8.size(), x3.size()) and in the last line is line before error. `torch.Size([2, 256, 64, 64]) torch.Size([2, 128, 128, 128]) torch.Size([2, 256, 64, 64]) torch.Size([2, 128, 128, 128]) torch.Size([2, 256, 64, 64]) torch.Size([2, 128, 128, 128]) torch.Size([2, 256, 64, 64]) torch.Size([2, 128, 128, 128]) torch.Size([2, 256, 64, 64]) torch.Size([2, 128, 128, 128]) torch.Size([2, 256, 64, 64]) torch.Size([2, 128, 128, 128]) torch.Size([2, 256, 64, 64]) torch.Size([2, 128, 128, 128]) torch.Size([2, 256, 64, 64]) torch.Size([2, 128, 128, 128]) torch.Size([2, 256, 64, 64]) torch.Size([2, 128, 128, 128]) torch.Size([2, 256, 64, 64]) torch.Size([2, 128, 128, 128])

--->> torch.Size([2, 256, 86, 86]) torch.Size([2, 128, 173, 173])`

hagsmand1 avatar Aug 22 '19 09:08 hagsmand1