Hi,
I am trying to  load data with c++ and return the c++ data to pytorch directly as a tensor. Is there any tutorial on how could I do this?  By the way, is pytorch tensor always contiguous in the memory ? Namely, if I need a (N, M) tensor, is it likely that I prepare N c++ pointers each of which holds the data for a (1, M) tensor and I pass these pointers to some api to compose a pytorch tensor without copying memory?