The list in C++ is different than the list in python.
I would assume you probably want to convert tensor to some C++ standard container (like vector etc.)?
I don’t think it is possible now using libtorch’s API,
but using Tensor.data_ptr<float>() will return the pointer float*. Then you can start from here to convert the internal data to the C++ container, for example, naive traversal like Convert tensor into an array 119 or else.