self.encoder = nn.Sequential(nn.Conv1d(1, 16, kernel_size=51, stride=10, bias=False, padding=25),
                                     nn.PReLU(),
                                     nn.Conv1d(16, 32, kernel_size=11, stride=3,  bias=False, padding=5),
                                     nn.PReLU(),
                                     )
        self.decoder = nn.Sequential(
                                     nn.ConvTranspose1d(32, 16, 11, stride=3, bias=False, padding=5),
                                     nn.PReLU(),
                                     nn.ConvTranspose1d(16, 1, 51, stride=10, bias=False, padding=25),
                                     nn.PReLU())

I think this should match well, however I get this error:
RuntimeError: The size of tensor a (2971) must match the size of tensor b (3000) at non-singleton dimension 2
Any suggestions please?