Einsum in 40 Lines of Python

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. einops

    Flexible and powerful tensor operations for readable and reliable code (for pytorch, jax, TF and others)

    See also https://github.com/arogozhnikov/einops

    Having used these (mostly translating code that used them) I see the power and benefit. I also find it takes a lot of mentally energy to get my head around them and makes readability harder.

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. ten

    A statically typed tensor programming language for defining AI models. (by lukehoban)

    I played around with the idea of a language motivated by this same thought process last year: https://github.com/lukehoban/ten.

    > Ten has the following features:

  4. TensorOperations.jl

    Julia package for tensor contractions and related operations

  5. array

    C++ multidimensional arrays in the spirit of the STL

    I wrote a library in C++ (I know, probably a non-starter for most reading this) that I think does most of what you want, as well as some other requests in this thread (generalized to more than just multiply-add): https://github.com/dsharlet/array?tab=readme-ov-file#einstei....

    A matrix multiply written with this looks like this:

        enum { i = 2, j = 0, k = 1 };

  6. Pytorch

    Tensors and Dynamic neural networks in Python with strong GPU acceleration

    PyTorch also has some support for them, but it's quite incomplete and has many issues so that it is basically unusable. And its future development is also unclear. https://github.com/pytorch/pytorch/issues/60832

  7. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub 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

  • torch.export()

    1 project | dev.to | 5 Mar 2025
  • PyTorch 2.6.0 Release

    1 project | news.ycombinator.com | 29 Jan 2025
  • Responsible Innovation: Open Source Best Practices for Sustainable AI

    1 project | dev.to | 27 Jan 2025
  • Making VLLM work on WSL2

    1 project | dev.to | 17 Jan 2025
  • Experiments with Byte Matrix Multiplication

    2 projects | news.ycombinator.com | 10 Jan 2025

Did you know that Python is
the 2nd most popular programming language
based on number of references?