I have an unusually situation here: I need to add a tensor to trainloader (DataLoader).
Suppose I have the trainloader from the following code
trainset = torchvision.datasets.CIFAR10(root='./data', train=True,
                                        download=True, transform=transform)
trainloader = torch.utils.data.DataLoader(trainset, batch_size=4,
                                          shuffle=True, num_workers=2)

And the only thing I can work with is the trainloader.
Now I want to append/add another tensor to the trainloader (e.g., weights for training data), so that I can do
for step, (data, target, weight) in enumerate(new_trainloader):
...

Is it possible to do so?