Layers of CNNs

A CNN consists of an input and an output layer; it also has various hidden layers. The following are the various hidden layers in a CNN:

Convolution application on an image

Rectified Linear Unit (ReLU) in CNNs

Functionality of max pooling layer in CNNs

There are various reasons to apply max pooling, such as to reduce the amount of parameters and computation load, to eliminate overfitting, and, most importantly, to force the neural network to see the larger picture, as in previous layers it was focused on seeing bits and pieces of the image. 

The following diagram illustrates the softmax activation function:

Softmax activation function