The convolutional operation (or filtering) is another common operation in many applications, especially in image and signal processing, as well as deep learning. Although this operation is based on the product of sequential data from the input and filter, we have a different approach for matrix multiplication.
Convolution
Convolution operation in CUDA
The convolutional operation consists of source data and a filter. The filter is also known as a kernel. By applying the filter against the input data, we can obtain the modified result. A two-dimensional convolution is shown in the following diagram:
We need to consider a couple of concepts when we implement convolution operation, that is, kernel and padding. The kernel is...