Types of layers in a CNN

Now that we know about the architecture of a CNN, let's see what type of layers are used to construct it. CNNs typically use the following types of layers:

  • Input layer: This layer takes the raw image data as it is.
  • Convolutional layer: This layer computes the convolutions between the neurons and the various patches in the input. If you need a quick refresher on image convolutions, you can check out this link: http://web.pdx.edu/~jduh/courses/Archive/geog481w07/Students/Ludwig_ImageConvolution.pdf . The convolutional layer basically computes the dot product between the weights and a small patch in the output of the previous layer.
  • Rectified Linear Unit layer: This layer applies an activation function to the output of the previous ...

Get Artificial Intelligence with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.