No need to excuse for that. 
I’ve just used an underscore in the data loading loop, to drop the targets:
for data, _ in loader:
    data = data.to(device)
    ...

In this loop only the data is used and no targets are available.
You could also just get the targets and not use them in any way.