-
Notifications
You must be signed in to change notification settings - Fork 464
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
Error when testing BertAbs model #234
Comments
topk_beam_index = topk_ids.div(vocab_size)
|
请问解决了吗?我也遇到了这个问题 |
Hi, thank you for your great work!
I encountered the following error in predictor.py` when trying to test BertAbs model.
Below is a shape and contents of
select_indices
andalive_seq
.FloatTensor cannot be used for the argument of
.index_select()
(only IntTensor or LongTensor is suitable).How should I fix it?
Thank you!
The text was updated successfully, but these errors were encountered: