Thank you for the reply.
Let me ask a queston related to conv3d which is related to this post.
I have a code in keras. I have a problem understanding the “same” padding.
My input shape to this layer is:  [128, 2048, 4, 2, 2]
This is my keras code:
combined = Conv3D(128, (3, 3, 3),strides=1,  padding=‘same’)(combined)
And I want to do it in pytorch. What I did:
self.conv1 = nn.Conv3d(2048, 128, kernel_size=(3,3,3), stride=1,  padding=( 1,1,1))
Are these perform the same?