That’s not generally true since the padding argument accepts different values and the “same” or “valid” option also depends on the kernel size, the stride, and other arguments.
In your use case you are using a kernel size of 1 which yields the same output size without any padding.
2 Likes