Custom batch data with and DataLoader

I am a fresh man in Pytorch, and want to generate mini batch data set.
My data format is below , three fields and no target

feature1, feature2, feature3

But the Dataloader’s input is two fields:

feature , target

So how can I generate batch-size data as above?

feature is usually an array, target is usually the label.
You can ignore the target if you dont want it.
See an example for a custom data loader here:

Get it.
the examples above looks nice.