`torch.utils.data.DataLoader`并行处理h5文件时错误,单线程正常,并行报错

`torch.utils.data.DataLoader`并行处理h5文件时错误,单线程正常,并行报错

添加 import torch.multiprocessing as mp
mp.set_start_method('spawn')
还是出错
RuntimeError: context has already been set
已邀请:

要回复问题请先登录注册