Skip to content

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