class torch.utils.data.DataLoader(dataset, batch_size=1, shuffle=False, sampler=None, num_workers=0, collate_fn=<function default_collate>, pin_memory=False, drop_last=False) 参数: dataset (Dataset) – 加载数据的数据集. batch_size (int, optional) – 每个batch加载多少…