Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hagsmand1 opened this issue Aug 22, 2019 · 0 comments

Comments

@hagsmand1
Copy link

hagsmand1 commented Aug 22, 2019

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])`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant