Variable length of text with cnn

Hello,
I am a newbie with pytorch and I am wondering what is the best practice for variable length sentences sequences in CNNs.

I want to use CNN for feature selection on top of word emmbeding layer and then feed the output into LSTM .

Now I know pytorch has a dynamic graph and I was wondering if there is a way to this except padding .