I read What is the difference between 'SAME' and 'VALID' padding in tf.nn.max_pool of tensorflow? but this is not true to my experiment.
import t
In tensorflow, for stride s and input size n, padding with same gives:
s
n
⌈n/s⌉
or the ceiling of input size divided by stride.