Ask HN: How do you visualize tensors?

Share This Post

I constantly find myself having to print raw tensors (either by hand or dumping them to stdout), especially when reading pytorch / jax code, to understand the transformations, e.g. for something like,

`x = torch.randn(32, 3, 224, 224).unfold(2, 16, 16).unfold(3, 16, 16).reshape(32, 3, 196, 256).transpose(1, 2).reshape(32, 196, 768).view(32, 196, 12, 64).transpose(1, 2)`

How do folks visualize tensors to quickly understand data flow in complex NN’s?


Comments URL: https://news.ycombinator.com/item?id=45564494

Points: 2

# Comments: 0

Source: news.ycombinator.com

Subscribe To Our Newsletter

Get updates and learn from the best

More To Explore

Windows Securitym Hackers Feeds

Voyager Budget Facing Reductions

Article URL: https://www.theregister.com/2025/10/10/nasa_voyagers_budget/ Comments URL: https://news.ycombinator.com/item?id=45567892 Points: 1 # Comments: 0 Source: www.theregister.com

Do You Want To Boost Your Business?

drop us a line and keep in touch

We are here to help

One of our technicians will be with you shortly.