Hi,
The dataset part is straightforward, see the class here:
‘https://github.com/pytorch/pytorch/blob/393ad6582d1876dc995925ef558ba94e954d115e/torch/csrc/api/include/torch/data/datasets/tensor.h 14’
But you need to somehow convert the data/labels in np.array in to a c++ array or vector. Then you can use from_blob to convert them in to a tensor.