Convert int * into tensor

Hi,
I’m new in Pytorch and I would like to know if there’s a good way to convert an int pointer to a new tensor using Libtorch in c++.
Thank you very much!

Yes there is a good way: use torch::from_blob.