How to use Pack_padded_sequence in TCN?

I am inputing pad_sequence to the conv1d based TCN model to train.
I want to ignore the zero paddings during the training.
So I tried to input the pack padded sequence object instead, just as in the way of training RNN-based models.
However, the errors came out and it won’t work.

Could you please help me with this issue?