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

error abou model.py_forward #10

Open
CarlBhy opened this issue Mar 8, 2021 · 2 comments
Open

error abou model.py_forward #10

CarlBhy opened this issue Mar 8, 2021 · 2 comments

Comments

@CarlBhy
Copy link

CarlBhy commented Mar 8, 2021

File "/home/sc/carl_test/BottleneckTransformers-main/model.py", line 43, in forward
energy = content_content + content_position
RuntimeError: The size of tensor a (4) must match the size of tensor b (196) at non-singleton dimension 1

Hi ! when run the model.py i meet this error

@leaderj1001
Copy link
Owner

Thanks for comments.

Could you plz show me your input shape?

@YePG
Copy link

YePG commented Apr 16, 2021

RuntimeError: The size of tensor a (4) must match the size of tensor b (196) at non-singleton dimension 2

I'm using your code. And I didn't make any changes

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

3 participants