How can I change the padding to be the same while changing the stride?

How can I change the padding to be the same while changing the stride?

nn.Conv2d(256,64,(1,1),stride=(1,2), padding = "same")

I want it to be like the code above.