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

报错 #15

Open
yt-liang opened this issue Jul 26, 2020 · 2 comments
Open

报错 #15

yt-liang opened this issue Jul 26, 2020 · 2 comments

Comments

@yt-liang
Copy link

image
您好,LSTM-CNNS-CRF中,运行train.py,报错RuntimeError: Expected tensor for argument #1 'indices' to have scalar type Long; but got torch.IntTensor instead (while checking arguments for embedding)。显示是model(word,char,label)的问题

@ne7ermore
Copy link
Owner

确认下pytorch的版本是不是0.4.0

@GZC201314
Copy link

我的也是这个错误,使用的pytorch是0.4.0
RuntimeError: Expected tensor for argument #1 'indices' to have scalar type Long; but got torch.IntTensor instead (while checking arguments for embedding)。

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

3 participants