torch.tensor()
torch.utils.data.dataloader()
my question is in the above two examples if we consider torch as a package we cannot have tensor() function inside a package as it should be present inside a .py file . if we consider tensor as a .py file then utils is a class then what data is . hence it contradicts
is torch a package and tensor() is a function present inside a file init so that we write torch.tensor() insted of torch.init.tensor()