Input of the ctc_loss

I have a model which outputs/predicts from an image (a word) to a label tensor
[1,64] = 119,111,114,100,0,0,…0,0,0,0: stands for “word”

How i transform that tensor for the input of the ctc_loss(input, …, …). It needs the number of the classes in the tensor i think.