title: Why use same padding with max pooling?
body: <p>While going through <a href="https://blog.keras.io/building-autoencoders-in-keras.html" rel="noreferrer">the autoencoder tutorial in Keras blog</a>, I saw that the author uses same padding in max pooling layers in Convolutional Autoencoder part, as shown below.</p>
  
  <pre><code>x = MaxPooling2D((2, 2), padding='same')(x)
  </code></pre>
  
  <p>Could someone explain the reason behind this? With max pooling, we want to reduce the height and width but why is same padding, which keeps height and width the same, used here? </p>
  
  <p>In addition, the result of this code halves the dimensions by 2, so the same padding doesn't seem to work. </p>