Solved by mscipio in post #3 
              
              
                Thanks a lot for the hint! 
This made the trick: 
out = torch.squeeze(torch.nn.functional.conv1d(out.view(1, Nv, -1),
                                        torch.flip(Cp,dims=(1,)).view(Nv,1, -1), 
                                        padding=(Nt - 1), groups= Nv))

Now I am haveing problems wi…