BangLiu / ArticlePairMatching

The code of ACL 2019 paper: Matching Article Pairs with Graphical Decomposition and Convolutions
Other
235 stars 60 forks source link

RuntimeError: mat1 and mat2 shapes cannot be multiplied (1x5 and 0x16)。有朋友遇到这个问题吗,维度不一致 #39

Open difonjohaiv opened 1 year ago

difonjohaiv commented 1 year ago

regressor.0.weight : torch.Size([16, 0]) 0 regressor.0.bias : torch.Size([16]) 16 regressor.2.weight : torch.Size([1, 16]) 16 File "H:\EXPERIMENTS\ArticlePairMatching-master\src\models\CCIG\models\se_gcn.py", line 151, in forward out = self.regressor(x) File "C:\Users\ediso\anaconda3\envs\articlepair\lib\site-packages\torch\nn\modules\module.py", line 1102, in _call_impl return forward_call(*input, *kwargs) File "C:\Users\ediso\anaconda3\envs\articlepair\lib\site-packages\torch\nn\modules\container.py", line 141, in forward input = module(input) File "C:\Users\ediso\anaconda3\envs\articlepair\lib\site-packages\torch\nn\modules\module.py", line 1102, in _call_impl return forward_call(input, **kwargs) File "C:\Users\ediso\anaconda3\envs\articlepair\lib\site-packages\torch\nn\modules\linear.py", line 103, in forward return F.linear(input, self.weight, self.bias) File "C:\Users\ediso\anaconda3\envs\articlepair\lib\site-packages\torch\nn\functional.py", line 1848, in linear return torch._C._nn.linear(input, weight, bias) RuntimeError: mat1 and mat2 shapes cannot be multiplied (1x5 and 0x16)

Joker723 commented 1 year ago

我遇到了 请问你解决了吗