When debugging libtorch source in Visual Studio, it would be really nice to see a more readable inspector of tensor, etc. I figured VS supported this because at some point std::vector got significantly more readable in the debugger. It seems .natvis files can be installed to do this. Here is an example for the Eigen library: Visual-Studio-Visualizers/Eigen.natvis at master · cdcseacave/Visual-Studio-Visualizers · GitHub
I don’t have any expertise with this, but I’m willing to give it a try, at least to easily see the shape and strides of a tensor. However, I wanted to see if this already exists?
I didn’t find any for libtorch so I made one for myself. This has tensor, data, requires_grad, grad_Fn and grad. You can change it and add anything yourself.