Is there bandpass filter api available in pytorch
You could create the bandpass filter either manually (e.g. via a difference of gaussians) or using another Python library (scipy should have methods for it) and apply the filter e.g. using
F.conv1d. Alternatively, you could also filter the signal in the frequency domain.