pack_padded_sequence only applies to RNNs (nn.RNN, nn.LSTM, nn.GRU).
You can process your initial (shared FB layer + MaxPooling) without padding the feature dimension, and then once you pooled, you can pad the output and send it into RNNs as packed sequences.