hmp2g icon indicating copy to clipboard operation
hmp2g copied to clipboard

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

Open zhiniao07 opened this issue 1 year ago • 1 comments

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]. 似乎是报错计算出的维度不正确,请问如何解决?

zhiniao07 avatar Oct 15 '24 10:10 zhiniao07

我也报了这个错

kafuuCocoa avatar Dec 18 '24 07:12 kafuuCocoa