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

The size of tensor a (4) must match the size of tensor b (2) at non-singleton dimension 0 #32

Open
denadai2 opened this issue Oct 6, 2019 · 1 comment

Comments

@denadai2
Copy link

denadai2 commented Oct 6, 2019

--> 172             skip = s + skip
     173 
     174             x = self.residual_convs[i](x)
     
     RuntimeError: The size of tensor a (4) must match the size of tensor b (2) at non-singleton dimension 0

I have this error I don't understand. In your code, dilations might increase the first dimension of the x, which is usually the batch size. Ok. However, this sometimes raise an errror on the skip connections, as in this case a vector [4, 1024, 1] is added to a vector [2, 1024, 1]. Why?

@sunyasheng
Copy link

@denadai2 I met the same error, have you figured out why?

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

2 participants