Maybe I’m misunderstanding something, but why would passing a sequence through a convolutional layer make you “lose” information about the length of that sequence? With a given series of convolutions, you should be able to quite easily figure out the output shape given the input shape?