CNN with standard max-pooling - does it produce same output for different positions of the object code example
Example: how to create a pooling layers in a CNN
# assuming you're using tenserflow keras
tf.keras.layers.MaxPooling2D(2, 2) # the (2, 2) quarters the size of the image