Data_loader for C++ frontend


(ChengLu She) #1

I followed the cpp frontend tutorial https://pytorch.org/cppdocs/frontend.html but when I try to call torch::data::data_loader, the compiler complained about no data_loader is in torch::data.

After some googling, I found this PR https://github.com/pytorch/pytorch/pull/11918/files is trying to add this but was closed. And in the source code of PyTorch, I found there is a make_data_loader function, but not sure if it’s the right thing.

So, is there a data loader for C++ frontend by now?


(Peter Goldsborough) #2

Thanks for reporting. The function was indeed renamed make_data_loader. I will update the example in frontend.html.