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

RuntimeError: Expected tensor for argument #1 'indices' to have scalar type Long; but got CUDAType instead (while checking arguments for embedding) #3

Open
ghost opened this issue Jul 4, 2019 · 2 comments

Comments

@ghost
Copy link

ghost commented Jul 4, 2019

运行python fine_tune_ernie.py.py出错:
RuntimeError: Expected tensor for argument #1 'indices' to have scalar type Long; but got CUDAType instead (while checking arguments for embedding)

@lonePatient
Copy link
Owner

@yuhang1993115 改下input的数据类型

@stubbornwdb
Copy link

我也遇到这个问题了,修改数据类型成 Tensor.int64也还报错

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

2 participants