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

报错hidden = F.relu(torch.matmul(x_, w1) + b1)维度计算不正确 #10

Open
zhiniao07 opened this issue Oct 15, 2024 · 0 comments
Open

Comments

@zhiniao07
Copy link

File "/home/nkw/code/hmp2g-master/ALGORITHM/common/hyper_net.py", line 49, in forward
hidden = F.relu(torch.matmul(x_, w1) + b1) # b * t, 1, emb
RuntimeError: Expected size for first two dimensions of batch2 tensor to be: [10, 360] but got: [10, 264].
似乎是报错计算出的维度不正确,请问如何解决?

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