We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
您的代码中的bert_sent__embed.py文件中的sent1 = data['sent1_input_ids'].to(device) 这里从dataload中取出data,将data放进device时报错list没有to属性 我不知道怎么解决
The text was updated successfully, but these errors were encountered:
sent1 = [] for item in data['sent1_input_ids']: item1 = item.to(device) sent1.append(item1)
我这样解决的不知道可不可以
Sorry, something went wrong.
No branches or pull requests
您的代码中的bert_sent__embed.py文件中的sent1 = data['sent1_input_ids'].to(device)
这里从dataload中取出data,将data放进device时报错list没有to属性
我不知道怎么解决
The text was updated successfully, but these errors were encountered: