IndexError: index out of range in self
#82
by
wegwerf
- opened
I get this error when using the example code. The last line in the stack trace is this:
Lib\site-packages\torch\nn\functional.py", line 2267, in embedding
return torch.embedding(weight, input, padding_idx, scale_grad_by_freq, sparse)
The only thing I changed is that I used a longer input text. I think it is too long. How to fix? Can I set the maximum length somehow?