Update the padding computation for PADDING_SAME to be consistent with TensorFlow.