MixMatch-pytorch icon indicating copy to clipboard operation
MixMatch-pytorch copied to clipboard

Update to work with pytorch 1.11.0

Open aleloi opened this issue 2 years ago • 1 comments

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.

aleloi avatar May 19 '22 21:05 aleloi

Thank you. It worked on my code.

YangZhangMizzou avatar May 09 '23 22:05 YangZhangMizzou