I want my activation function to select the maximum value generated by Nconvolution filters M x M. This layer converts the channel image Xinto a single channel.
How to do it?
I wrote first
classifier.add(Conv2D(3, (5, 5), activation='linear')
classifier.add(MaxPooling2D(pool_size=1, strides=1))
but then I thought that it does not return a 1-channel image, but returns 3 channels.
How to do it?
source
share