thxkew:

and I padded target to have the length as the maximum target length in mini-batch with ‘blank’.


I do not know if padding the targets create a problem for sure, but you can surely provide the targets as a 1D sequence to CTCLoss