[D] How to handle variable input lenghts for tansformer encoder?
I have variable text lenghts and want to use encoder like in this example
For RNNs I should use pack_padded_sequence, what should I do for transformer?
Or it is ok for transformer to get zeros in inputs?
submitted by /u/hadaev
[link] [comments]