CTC Loss - Add Weights

Hello,

I am learning CTC Loss from CTCLoss — PyTorch 1.10.0 documentation,

In CTC Loss, how should we add weights like in torch.nn.CrossEntropyLoss to handle unbalance dataset?

Thanks