You can use pack_padded_sequence 8, which will not activate RNN steps on the padded elements.
The usefulness of dynamic graph is more than variable length sequence. For example, you can then use arbitrary python control primitives in activation.