Solved by colesbury in post #5 
              
              
                Your Keras model probably uses NHWC ordering for the convolutions. PyTorch uses NCHW for convolutions. 
This means your input should be transposed. Also, it looks like you’re doing a 1-d convolution so you probably want to change the kernel size to: (8, 1). 
a = torch.randn(32, 1, 720, 1)
torch.nn.C…