How to get input data from a dataloader?

Hi guys,
I am relatively new to neural networks and for a project I am currently working on I am given a train_dataloader and I need to get the input data. Can somebody please help me on this?
I know that you can get the labels with train_dataloader.dataset.targets but how do I get the features?

Thank you so much!

To train what is usually done is to iterate over the dataloader such as:

for i, (x, y) in enumerate(train_loader)

Where i is the iteration, x are the features and y is the target.

Thanks, but I need the whole input data because I need to do some preprocessing and I would prefer not to get it with a for loop for efficiency reasons