I’m trying to build a C++ libtorch model. Following examples I found online, I thought I should use a Dataset to make a data loader to load in batches of my data. However, in the examples I’ve seen online, the “get” method of a custom dataset returns Example<> which assumes that both the input and labels are tensors. What if I want them to be vector<vector<int>>? (A jagged 2d array)
Is this possible? If so, can you give a code example of doing this with libtorch?
Thanks,
Jack