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

TypeError:mul():argument 'other' (position 1) must be Tensor,not list #6

Open
ChiYing212 opened this issue Nov 21, 2019 · 7 comments
Open

Comments

@ChiYing212
Copy link

when I run the main.py, the above problems occurs in line 213
(line 213 is "mask[idx,:seqlen] = torch.Tensor([1]*seqlen)")

@Nealcly
Copy link
Owner

Nealcly commented Nov 21, 2019

May I ask which Pytorch version you used?

@ChiYing212
Copy link
Author

0.3.1

@satori555
Copy link

when I run the main.py, the above problems occurs in line 213
(line 213 is "mask[idx,:seqlen] = torch.Tensor([1]*seqlen)")

Pytorch 0.3.1 shoule be ok, for newer version, just modify seqlen as seqlen.item()

@wshzd
Copy link

wshzd commented Nov 28, 2019

torch 0.3.0b0+591e73e
that is my torch version above,l can run correctly.

@chiyuzhang94
Copy link

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?

@yhjiujiu
Copy link

mask[idx,:seqlen] = torch.Tensor(torch.tensor([1])*seqlen)"

@popkarthb
Copy link

Check your input data parameter.
Make sure it is in 123123 not in [123123]

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

7 participants