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

Update to work with pytorch 1.11.0 #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

aleloi
Copy link

@aleloi aleloi commented May 19, 2022

Previously running this on pytorch 1.11.0 failed with RuntimeError: "nll_loss_forward_reduce_cuda_kernel_2d_index" not implemented for 'Int'. After converting training labels to long (which is not for some reason a requirement), I ran in the next error 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.. I fixed both and the accuracy/loss is computed normally.

@YangZhangMizzou
Copy link

Thank you. It worked on my code.

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

Successfully merging this pull request may close these issues.

2 participants