Solved by ptrblck in post #2 
              
              
                nn.CTCLoss expects log probabilities as the input as described in the docs. 
If you call ìnput = input.log_softmax(2)`, you’ll get a positive loss value.