How can I give high weightage to one class based on training performance

I am training a Resent-18 model on CIFAR- 10 dataset. But my model is failing to learn over label1 and 5 after certain epochs.

One can see the performance of the model on: https://wandb.ai/praveenjoshi007/sfl/reports/Shared-panel-21-10-27-22-10-26--VmlldzoxMTYyOTI3?accessToken=6einm83ach3zd2zsl2cowel8o2n7t9k9gg64bqs5coaoryql0a0qtsrzoegqucbk

Is there any function that can help make my model learn on the labels showing a high loss or having low classification accuracy?

You could try to estimate the weights for the current epoch based on the unreduced loss and recreate a weighted criterion in the next epoch.
To get the raw, unreduced loss use reduction='none' while creating the criterion and check the losses for each sample in the current batch.