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

使用MGAN模型报错 #221

Open
cheemsbaby opened this issue Feb 23, 2023 · 0 comments
Open

使用MGAN模型报错 #221

cheemsbaby opened this issue Feb 23, 2023 · 0 comments

Comments

@cheemsbaby
Copy link

File "D:\代码\文本\ABSA-PyTorch\models\mgan.py", line 56, in forward
alignment_mat[:, i, j] = feat.matmul(self.w_u.expand(batch_size, -1, -1)).squeeze(-1).squeeze(-1)
RuntimeError: Expected object of scalar type Double but got scalar type Float for argument #2 'mat2' in call to _th_bmm_out

@cheemsbaby cheemsbaby changed the title 使用MGAN模型式报错 使用MGAN模型报错 Feb 24, 2023
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