Hi,
CTCLoss returns inf if the input length is too short. It appears that for the PyTorch CTCLoss, the input lengths are too short if input_len = target_len, actually that’s also not the primary use case for CTCLoss. I don’t know whether that’s intentional or a bug of PyTorch’s implementation, as this limitation does not make sense to me.
Regards,
Unity05