Make sure the matrix convolution operation supports both padding and stride in its forward and backward functions. It currently only supports padding.