How to set weights for 38 number of classes individually in Cross Entropy Loss, via pytorch

Hello Fikrat!

I answered this exact question in my reply to your previous post:

If this doesn’t work for you or your have further questions, it would
probably make the most sense to move the discussion back to that
earlier thread.

Best.

K. Frank