I’ve my own BatchDataset.
The DataLoader returns type vector<Example<>>.
The tutorials and topics I’ve found do something like…
for (auto &batch : *data_loader)
{
    Tensor t = batch.data;
}

But here batch is a vector and batch.data makes no sense. At least it doesn’t return a Tensor.
I could do something like
for (auto &batch : *data_loader)
{
    for (auto example : batch)
    {
        Tensor t = example.data;
    }
}

But I’d like to forward the whole batch and not only a single tensor from the batch.
How does this work?