ImageFolder will return a data and target tensor. You are currently assigning both return values to data in the DataLoader loop. If you want to use both objects as tensors, you could either use two return variables via:
for i, (data, target) in enumerate(target_loader, 0):

or unwrap them inside the loop:
for i, data in enumerate(target_loader, 0):
    x, y = data