Solved by albanD in post #2 
              
              
                Hi, 
The only difference between what you expect and what you get is a transpose. The expected use for convolution is to do mm(w, unfold(input)). 
You can see here that the unfold is called and here the mm is done with the weights.