-
Notifications
You must be signed in to change notification settings - Fork 119
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
linear(): argument 'input' (position 1) must be Tensor, not str #10
Comments
Hi @chrischang5 Even I am facing the same issue. Were you able to fix it? |
Hi @swarupe, unfortunately, I was not able to fix it. I've seen talks on using older versions of Huggingface transformers but I haven't been able to test them fully. |
getting exact error output Any Solution |
Same error. I was able to get it resolved to downgrade Transformers: pip install transformers==3 |
In the BERT_Arch(nn.Module): class change the line from: to this:- |
Thank you so much for this solution. I was really struggling to solve this issue. |
Tried running the code but got this error on both my dataset and the example dataset.
The text was updated successfully, but these errors were encountered: