I see, thanks for the code snippet (I assume the conv layer should be nn.ConvTranspose1d).
I don’t think you can easily change it, but might instead have to slip the inputs and kernel if you compare the TF and PyTorch implementations.
I’m not sure, if TF flips the kernel anyway, but I think Theano flipped it internally to use a convolution instead of a cross-correlation.