songyouwei / ABSA-PyTorch

Aspect Based Sentiment Analysis, PyTorch Implementations. 基于方面的情感分析,使用PyTorch实现。
MIT License
1.99k stars 522 forks source link

Issue with infer example #205

Open yassmine-lam opened 2 years ago

yassmine-lam commented 2 years ago

Hi,

I tried to infer an example using ASGCN model with the same dataset used for evaluation in training process. However, I got this error

output = torch.matmul(adj, hidden) / denom RuntimeError: batch1 dim 2 must match batch2 dim 1

Any ideas plz?

Thank u in advance

GeneZC commented 2 years ago

It seems that the dependency matrix has not been processed properly. Could you please give the details of your example?