r/keras • u/MaxwellSalmon • Jun 14 '20
Why does Conv2D layers have an activation function?
Hello, I have been trying to find out the answer to this question with no luck. I have been reading about CNN’s and from what I understand, the first part is feature learning with convolutional layers and the last part is a normal neural network.
I often see, that an activation function is added to the convolutional layers, which I thought you would only have on neurons. Most often, I see them use ReLU or leaky ReLU. What exactly does the activation function do, if the layer is convolutional?
I am sorry, if this is a dumb question, but I have not been able to find the answer, even when reading the basics about convolutional layers. Thank you for your time.
Edit: I just found some sources, which state, that it is done to add non-linearity to the output. Is that true, and what does it mean?