The in_channels are defined by the number of channels in the input tensor for the first conv layer and can be picked for the out_channels as well as the following layers.
The kernel size can be picked by the user as long as it’s larger than the spatial size of the input.