Thanks! … the problem is that I am trying to implement a recursive (auto-regressive) filter and unfortunately in Pytorch only FIR filtering (i.e. just multiply and add without auto-regression) is supported via conv1d. That’s why I need to use looping in order to filter the signal on a sample-by-sample basis and append the output sample to manipulate the next samples and so on.