I’m trying to train a cnn model. So, when the training reaches the loss.backward(), the error occurs. The same model has worked before. But, I used torchsample to transform the images, which I did’t use previously.
I tried to run without GPU, and I got this error,
RuntimeError: Assertioncur_target >= 0 && cur_target < n_classes’ failed.  at /opt/conda/conda-bld/pytorch_1503968623488/work/torch/lib/THNN/generic/ClassNLLCriterion.c:62`