diff --git a/cpp/core/filter/smooth.h b/cpp/core/filter/smooth.h index 32c0a81348..8d733484e5 100644 --- a/cpp/core/filter/smooth.h +++ b/cpp/core/filter/smooth.h @@ -151,7 +151,7 @@ class Smooth : public Base { } DEBUG("smoothing dimension " + str(dim) + " in place with stride order: " + str(axes)); SmoothFunctor1D smooth(in_and_output, stdev[dim], dim, extent[dim], zero_boundary); - ThreadedLoop(in_and_output, axes, 1).run(smooth, in_and_output); + ThreadedLoop(in_and_output, axes, std::min(2, axes.size())).run(smooth, in_and_output); if (progress) ++(*progress); }