Screen Shot 2021-05-26 at 1.37.16 PM585×577 35.5 KB

Hey everyone, I have a question about connecting the convolution in this picture to the torch.nn.Conv2d function. So to recapitulate the convolution step, I’d need to set the out_channels = 2 and kernel_sizes = [2, 3, 4]. My question is how are the values in the filter matrices calculated? I assume the two filters with size 2 aren’t the same. Any help is appreciated!
Just to add another point to this to make it more clear, when reading about CNN for images, I come across these pre-defined filters (see below). How come there is no option for that in torch.nn.Conv2d?