Tensor contractions with numpy's einsum function seem slow compared to simple code.

This page summarizes the projects mentioned and recommended in the original post on /r/Python

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • NumPy

    The fundamental package for scientific computing with Python.

  • Maybe interesting (from NumPy's GitHub page) https://github.com/numpy/numpy/issues/19647

  • Eins

    Simple einsum contractor test

  • Ok, I compared this, here are some benchmarks. I ran it against matmul and tensordot. The code for my einsum function is here: https://github.com/hillac/Eins

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts