This is best demonstrated with an a diagram: The convolution can be any function of the input, but some common ones are the max value, or the mean value. A convolutional neural network (CNN) is a neural network where one or more of the layers employs a convolution as the function applied to the output of the previous layer.