Hi Jami!



 Jami_Anwesh_Kumar:

Target 7 is out of bounds


CrossEntropyLoss expects class labels that run from
{0, 1, ..., nClass - 1} (not from 1 to nClass).
So in your case, 6 is the largest legal class label, and 7 is out
of bounds.


I uploaded the out of bounds error picture here.


By the way, please don’t post screen-shots of textual information.
Doing so breaks screen readers (accessibility), search, and copy-paste.
Best.
K. Frank