I created following conv layer:
import torch
from torch import nn
in_channels = 1
out_channels = 3
kernel_size = 2
conv1 = nn.Conv2d(in_channels, out_channels, kernel_size, padding='same')

After calling this layer I get the following error:
TypeError: conv2d(): argument 'padding' (position 5) must be tuple of ints, not str

PyTorch Version: 1.7.0 (in kaggle notebook)