Get the latest tech news

Draw high dimensional tensors as a matrix of matrices


I have recently needed to draw the contents of high-dimensional (e.g., 4D and up) tensors where it is important to ensure that is clear how to identify each of the dimensions in the representation. Common strategies I've seen people do in this situation include printing a giant list 2D slices (what the default PyTorch printer will do) or flattening the Tensor in some way back down to a 2D tensor.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of matrix

matrix

Photo of Matrices

Matrices

Related news:

News photo

Matrix collapses: Mathematics proves the universe cannot be a computer simulation, « A new mathematical study dismantles the simulation theory once and for all. »

News photo

France jacks into the Matrix for state messaging – and pays too

News photo

If only Hideo Kojima had known the Wachowskis wanted him to make a Matrix game, maybe he could have found a way to make it work