PyKeOps is a Python package providing bindings to the KeOps library, which enables efficient computation of kernel operations on CPUs and GPUs with automatic differentiation and without memory overflows. It is widely used in geometry processing, shape analysis, and machine learning for large-scale distance and kernel computations. Current version is 2.3, with active development on GitHub.
pip install pykeopsVerified import paths — ran on the pinned version, not inferred.
Compute pairwise Gaussian kernel sum using LazyTensors for memory-efficient reduction.
Migrate to LazyTensor-based API: replace generic reductions with symbolic expressions.
Call .eval() on the final LazyTensor or use reduction operations that return tensors (some like .sum() still return LazyTensor).
Use LazyTensor or Genred for custom formulas.