When I study Deep MNIST for Experts tutorial, I have many difficulties. I'd to know why they used Convolution and Pooling in a Multilayer Convolutional Network.
And I don't understand the following two functions.
def conv2d(x, W):
return tf.nn.conv2d(x, W, strides=[1, 1, 1, 1], padding='SAME')
def max_pool_2x2(x):
return tf.nn.max_pool(x, ksize=[1, 2, 2, 1],
strides=[1, 2, 2, 1], padding='SAME')
I'd to know the meaning of strides=[1,1,1,1] in conv2d function.
Should we always use ksize=[1, 2, 2, 1] and strides=[1, 2, 2, 1] in max_pool_2x2 function.
What is the difference between padding='SAME' and padding='VALID'