Hello ,
I am getting error “AttributeError: module ‘torch.utils.data’ has no attribute 'random_split”
in following code.
train_dataset, test_dataset = torch.utils.data.random_split(full_dataset, [train_size, test_size])
Anybody know the reason ?
My torch.utils.data does not suggest random_split in import section even.