当前位置:网站首页>Pytorch: runtimeerror: an attempt has been made to start a new process Error reporting (resolved)
Pytorch: runtimeerror: an attempt has been made to start a new process Error reporting (resolved)
2022-04-23 21:01:00 【Top of the program】
PyTorch appear :RuntimeError: An attempt has been made to start a new process… Report errors ( resolved )
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 have forgotten to use the proper idiom
in the main module:
if __name__ == '__main__':
freeze_support()
...
The "freeze_support()" line can be omitted if the program
is not going to be frozen to produce an executable.
Reference resources https://blog.csdn.net/u014546828/article/details/109235539
版权声明
本文为[Top of the program]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/111/202204210545090952.html
边栏推荐
- Solve importerror: cannot import name 'imread' from 'SciPy misc‘
- MySQL advanced common functions
- go slice
- Flomo software recommendation
- DeNO 1.13.2 release
- 引入结构化并发,Swift 5.5 发布!
- Some thoughts on super in pytorch, combined with code
- Norm normalization in tensorflow and pytorch of records
- matplotlib. Pyplot partition drawing
- CUDA, NVIDIA driver, cudnn download address and version correspondence
猜你喜欢
随机推荐
Linux中,MySQL的常用命令
Addition, deletion, modification and query of advanced MySQL data (DML)
Express ③ (use express to write interface and cross domain related issues)
Detectron2 usage model
Presto on spark supports 3.1.3 records
Question brushing plan -- backtracking method (I)
Opencv application -- jigsaw puzzle
Minecraft 1.12.2 module development (43) custom shield
Amazon and epic will be settled, and the Microsoft application mall will be opened to third parties
Two Stage Detection
Prim、Kruskal
Recommended usage scenarios and production tools for common 60 types of charts
Introduce structured concurrency and release swift 5.5!
Opencv reports an error. Expected PTR < CV:: UMAT > for argument '% s'‘
Tensorflow1. X and 2 How does x read those parameters saved in CKPT
1. Finishing huazi Mianjing -- 1
Automatic heap dump using MBean
常用60类图表使用场景、制作工具推荐
Sklearn function: Train_ Test_ Split (split training set and test set)