我收到此错误:
Exception in Thread: ValueError: signal number 32 out of range
给我带来问题的具体教程是训练分类器(https://pytorch.org/tutorials/beginner/blitz/cifar10_tutorial.html),具体行是:
dataiter = iter(trainloader)
完整的错误回溯是:
Exception in thread Thread-5:
Traceback (most recent call last):
File "/home/chenchen/anaconda3/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/home/chenchen/anaconda3/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/home/chenchen/anaconda3/lib/python3.6/multiprocessing/resource_sharer.py", line 139, in _serve
signal.pthread_sigmask(signal.SIG_BLOCK, range(1, signal.NSIG))
File "/home/chenchen/anaconda3/lib/python3.6/signal.py", line 60, in pthread_sigmask
sigs_set = _signal.pthread_sigmask(how, mask)
ValueError: signal number 32 out of range
我的操作系统是 Ubuntu 18.10,我的 python 环境是 python 3.6 的 Anaconda3。我从最新源安装了 pytorch。我的 cuda 版本是 10.0。
哔哔one
尚方宝剑之说
相关分类