Visualize tensors in a plain Python REPL using Sparklines
sparkvis This is a library for visualizing tensors in a plain Python REPL using sparklines. I was sick of having to install jupyter on servers just to see a damn tensor. E.g. the FFT of MNIST looks like this: Quickstart pip3 install -U sparkvis python3 from sparkvis import sparkvis as vis vis(foo) foo can be a torch tensor, tf tensor, numpy array, etc. It supports anything with a .numpy() method. vis(a, b) will put ‘a’ and ‘b’ side by side. […]
Read more