Program executed
import torch
torch.utils.data.DataLoader(
dataset = dataset,
batch_size = 100,
shuffle = True,
num_workers = 0)
Error statement
AttributeError: module ‘torch.utils’ has no attribute ‘data’
The solution is to use ʻimport torch.utils.data instead of ʻimport torch
.
Recommended Posts