I think tensor1() is enough. as
When you write
from torch.utils.data import DataLoader

then you write the class Dataloader in file dataloader.py within the package torch.util.data.
I think I  have made myself clear, if not feel free to ask