I don't know if it has been answered before but I was wondering what is the use of the following,
padList = zeroPadding(indexes_batch)
in the function, inputVar(l, voc)
We already have the correct batch here,
indexes_batch = [indexesFromSentence(voc, sentence) for sentence in l]
the indexes_batch contains the input (with length) which gets changed by the zeroPadding function call! Any explanation?