Is there any way to print a tensor content while debugging in Visual studio?

It seems like such an obvious and simple need. To be able to inspect the content of a tensor while debugging. Still I cannot find a way. Expanding the object in Visual studio just gives useless things. And trying to execute any code in the immediate window either doesn’t give any useful result or isn’t allowed. So how can I view the tensor?

Did you ever find a solution to this or a way to work around this issue?

No unfortunately not. I mainly call torch from c# and there I can inspect the content. Would have been nice though.