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

Error: argmax(): argument 'input' (position 1) must be Tensor, not str #2

Open
peterphancong opened this issue Dec 30, 2022 · 0 comments

Comments

@peterphancong
Copy link

image
Hi,
I followed your guide, but it displayed the error 'argmax(): argument 'input' (position 1) must be Tensor, not str' as in the screenshot above.
Actually, when I tried to print the 'start_scores' and 'end_scores', they are actually the string, start_score = "start_logits" and end_scores = 'end_logits'
Could you please help to check?

Thanks

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

1 participant