Extend of CTCLoss

At the end of the day, CTCLoss is just some fancy CrossEntropyLoss, could I instead use another loss MSE + CSE or even something more complicated? I want do it by providing some argument to CTCLoss like that CTCLoss(my_custom_loss). It seems doable, but I do not see such possibility in pytorch framework currently.