For with and strid then the output is
so in the above example,
In mathmatics, the filter is supposed to be rotated 90 degrees and flipped as shown below for convolution operation.
Technically, what we’re actually doing in the convolution neural network, the operation we’ve been doing is called cross-correlation() instead of convolution(). But in the deep learning literature by convention, we just call this a convolutional operation.