Two things I had to adapt to are

warpctc wants packed sequences
it is one of the few places where you need IntTensors (.int() so dtype int32) rather than LongTensors.

I packed the sequences myself, the format is not that of pack padded sequences for cuDNN.
Best regards
Thomas