While reading about 1D-convolutions in PyTorch, I encountered the concept of
in_channels (int) – Number of channels in the input image
out_channels (int) – Number of channels produced by the convolution
Although I encountered this concept of channels earlier, I am confused about channels and might understand them in the wrong manner.
Since the operation we are discussing is a 1D convolution, then there will be two lists of numbers: one is the input list and the other is the filter list. The last one is the feature map (the output list).
They look like this:
The left one is the input list, the middle one is the filter list and the rightmost one is the output list.
Each cell in the input list contains a whole number. Each cell may take a value in the fixed range $[a, b]$ of numbers.
What is the concept of channels used here? From where the channels are coming? Does the number of channels stand for the number of elements in the corresponding list?