cuda runtime error (63) : OS call failed or operation not supported on this OS
Traceback (most recent call last):
File "D:\ProgramData\Miniconda3\lib\multiprocessing\queues.py", line 234, in _feed
obj = _ForkingPickler.dumps(obj)
File "D:\ProgramData\Miniconda3\lib\multiprocessing\reduction.py", line 51, in dumps
cls(buf, protocol).dump(obj)
File "D:\ProgramData\Miniconda3\lib\site-packages\torch\multiprocessing\reductions.py", line 109, in reduce_tensor
(device, handle, storage_size, storage_offset) = storage._share_cuda_()
RuntimeError: cuda runtime error (63) : OS call failed or operation not supported on this OS at c:\new-builder_3\win-wheel\pytorch\torch\csrc\generic\StorageSharing.cpp:231
原因:把tensor插入到进程队列中了。
解决方法:tensor转成numpy数组再插入队列就可以了。