Windows运行出现RuntimeError: DataLoader worker (pid(s) 11208, 3676, 5316, 10956, 9808, 11116, 1212, 9512

问题:

Windows运行出现RuntimeError: DataLoader worker (pid(s) 11208, 3676, 5316, 10956, 9808, 11116, 1212, 9512) exited unexpectedly错误 #30

解决办法:

需要将DataLoader(mnist_test, batch_size=32, shuffle=True,num_workers=0)中的num_workers改为0.

你可能感兴趣的:(异常报错解决)