Sparse Tensor Creation in the C++ API


is there a way of creating a sparse tensor using the C++ API? I looked into the documentation but was unable to find anything.

In particular, what would be the equivalent (if there is one) of

torch.sparse.FloatTensor(indices, values, size)



I think this is the function you are looking for:

Thank you very much, I missed that one!