Hi,
How to convert a torch::Tensor to a list in C++? I am looking for a C++ equivalent of the following python code:
x
tensor([[0., 6.],
        [1., 2.]])
x.tolist()
[[0.0, 6.0], [1.0, 2.0]]

Thanks!