1.BrokenPipeError: [Errno 32] Broken pipe
DataLoader是单线程,好像是个bug?
解决方法:修改num_workers=0,或者不设定num_workers的值,默认就会为0
if __name__ == "__main__":
train_dataloader = DataLoader(
dataset=dataset,
batch_size=32,
shuffle=True,
1.BrokenPipeError: [Errno 32] Broken pipe
DataLoader是单线程,好像是个bug?
解决方法:修改num_workers=0,或者不设定num_workers的值,默认就会为0
if __name__ == "__main__":
train_dataloader = DataLoader(
dataset=dataset,
batch_size=32,
shuffle=True,