Supported frameworks for einops
mainEinops is compatible with a wide range of tensor libraries. It supports frameworks that implement the Python array API standard, including:
- Core support:
numpy,pytorch,tensorflow,jax,cupy. - Community support:
flax,paddle,oneflow,tinygrad,pytensor. - Other compatible libraries:
MLX(Apple),pydata/sparse(>= 0.15),cubed(distributed tensors),quantco/ndonnx, anddask(viaarray-api-compat).
When using the array API standard, it is recommended to import from einops.array_api instead of the top-level einops module.
# Instead of:
from einops import rearrange
# Use:
from einops.array_api import rearrange