pytorch
11格格BLUE
一名兴趣使然的小白
展开
-
RuntimeError: An attempt has been made to start a new process before the current pr
报错:RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase. This probably means that you are not using fork to start your child processes and you hav原创 2020-07-23 14:34:50 · 237 阅读 · 0 评论 -
pytorch中 tensor.dot()方法报错1D tensors expected, got 2D, 2D tensors
RuntimeError: 1D tensors expected, got 2D, 2D tensors at C:\w\1\s\windows\pytorch\aten\src\TH/generic/THTensorEvenMoreMath.cpp:774这是由于在pytorch0.3之后,tensor.dot()方法进行了更新,只能对1维的tensor进行点成运算。所以只要检查一下自己输...原创 2020-03-31 16:00:11 · 9021 阅读 · 0 评论