ptrblck:

conv = nn.Conv1d( in_channels=8, out_channels=8, kernel_size=4, padding=0, groups=8 )


I so appreciate your solution. It makes me more clear about the purpose of group convolution. In summary, we have a input size of 1x8x4, where 1 is batch size, 8 is row and 4 is column.  An output vector with size of 1x8x1, in which each row in the new vector is a linear combination (with an own weight set) of 4 columns in the input vector. We solve it using convolution 1d with group size of number row. Am I correct?