If we decide to use CUDA, this should not be in filter.py, as we likely would use it in other places as well.