Hi, I am still learning PyTorch, so please forgive me for any confusion. I am looking for an implementation that one CONV operation uses multiple kernels. For example on CONV1D, I have an array [1,0,1,1,0] and would like to use 3 1x3 kernels ([0.1,0.2,0.1],[0.1,0,0], [0,0.2,0]) to sweep the array sequentially, and get [10.1+00.2+10.1=0.2, 00.1+10+10=0, 10+10.2+00=0.2]. I couldn’t find any straightforward PyTorch solutions and would like to hear any suggestions. Thanks.

Based on your description it seems as if you would like to apply the kernels to a single location and shift each kernel by 1?
If so, you could e.g. apply a standard convolution and get the diagonal of the result: