Support SAME padding legalization when `stride > 1`.
Support SAME padding legalization when `stride > 1`.

Calculates `SAME` padding based on reference in https://www.tensorflow.org/api_docs/python/tf/nn/convolution like the following:
`output_spatial_shape[i] = ceil(input_spatial_shape[i] / strides[i])`
