title: What is the logic that is being used to convert 28X28 input image to 32X32 image in LeNet?
body: <p>I am using MNIST data which has an image of size 28X28 pixel I using padding to convert it to 32X32 pixels as shown below:</p>
  <pre><code>tf.pad(tensor=X_train, paddings=[[0, 0], [2,2], [2,2]])
  </code></pre>
  <p>Output is coming out to be correct.</p>
  <pre><code>TensorShape([60000, 32, 32])
  </code></pre>
  <p>I want to understand what exactly does [0, 0], [2, 2] and [2, 2] mean? What is the top, bottom, left, and right padding here? What do numbers depict?</p>