-
Notifications
You must be signed in to change notification settings - Fork 50
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
TypeError:mul():argument 'other' (position 1) must be Tensor,not list #6
Comments
May I ask which Pytorch version you used? |
0.3.1 |
Pytorch 0.3.1 shoule be ok, for newer version, just modify seqlen as seqlen.item() |
torch 0.3.0b0+591e73e |
Hi, I am also trying to use the tool. But I am wondering where the dataset is. I saw you run this model and posted issues. What dataset did you use? Could you please share with me? |
mask[idx,:seqlen] = torch.Tensor(torch.tensor([1])*seqlen)" |
Check your input data parameter. |
when I run the main.py, the above problems occurs in line 213
(line 213 is "mask[idx,:seqlen] = torch.Tensor([1]*seqlen)")
The text was updated successfully, but these errors were encountered: