Hacker News new | ask | show | jobs
by stared 697 days ago
I had been working on a library for visualizing tensor contractions (so-called Penrose tensor diagrams), https://github.com/Quantum-Flytrap/tensor-diagrams, with an example (a tutorial stub) https://p.migdal.pl/art-tensor-diagrams/.

My background is in quantum physics, and it is a useful tool for understanding some aspects of entanglement. Here, the idea was to show its use in machine learning in general and deep learning in particular.

1 comments

Awesome! Are you able to handle sums of diagrams like (-M- + -a b-)-c etc?
Thanks! Right now, it does not.

I focus on a common case of a single product without any other parts. If there is a summation, it is managed via indices.

If you are interested in arbitrary drawings, you are probably aware of TikZ (if you like coding) or Excalidraw.