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

RuntimeError: view size is not compatible with input tensor's size and stride (at least one dimension spans across two contiguous subspaces). Use .reshape(...) instead. #53

Open
happy20200 opened this issue Jul 22, 2022 · 1 comment

Comments

@happy20200
Copy link

8ed87865718db632e4eff3e03069085

@z872845991
Copy link

Hi, about this issue, you can with

correct_k = correct[:k].reshape(-1).float().sum(0)

to replaced

correct_k = correct[:k].view(-1).float().sum(0)

in utils/eval.py

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

2 participants