@leimao
What do you want to achieve?
If you need examples on how to create tensor, here，there are examples in the tests:
‘https://github.com/pytorch/pytorch/blob/455e85a2f181a66e7505d0e7eeb0ad0825bc4a41/aten/src/ATen/test/basic.cpp 230’
C++ doc is here:
‘https://pytorch.org/cppdocs/api/classat_1_1_tensor.html?highlight=tensor 162’