[W ParallelNative.cpp:212] Warning: Cannot set number of intraop threads after parallel work has started or after set_num_threads call when using native parallel backend (function set_num_threads)

翻译一下:

无法在并行任务启动后设置线程数量,也无法在使用原生的并行后端时调用set_num_threds。

总的来说,就是这个问题还没解决,只能取消并行,用单线程去运行。

import os
os.environ["OMP_NUM_THREADS"] = "1"

网上有相关的帖子:

  • 解决pytorch进行深度学习的时候出现的:Warning: Cannot set number of intraop threads
  • export命令在Mac Pycharm上如何设置环境变量!_ CodingPark编程公园
  • github-issueWarning: Cannot set number of intraop threads after parallel work has started or after set_num_threads call when using native parallel backend (function set_num_threads) #94
  • stack overflow:Pytorch : W ParallelNative.cpp:206
  • github-issue:Custom ops get stuck in multiprocess data loader under certain environments
  • Dataloader - parallel processing error - ParallelNative.cpp

[W ParallelNative.cpp:212] Warning: Cannot set number of intraop threads after parallel work h相关推荐

  1. 解决[W pthreadpool-cpp.cc:90] Warning: Leaking Caffe2 thread-pool after fork. (function pthreadpool)

    解决[W pthreadpool-cpp.cc:90] Warning: Leaking Caffe2 thread-pool after fork. (function pthreadpool) p ...

  2. OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one......

    启动kafka的脚本程序报如下所示的错误: OpenJDK 64-Bit Server VM warning: If the number of processors is expected to i ...

  3. 问题:OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one...

    问题:OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one, t ...

  4. 【debug】cv2.bitwise_or报错解决:cv2.error: OpenCV(4.6.0) /io/opencv/modules/core/src/arithm.cpp:212: error

    问题 运行代码到cv2.bitwise_or报错如下信息: cv2.error: OpenCV(4.6.0) /io/opencv/modules/core/src/arithm.cpp:212: e ...

  5. The number of Oracle redo threads (2) is not the same as the number of checkpoint threads (1)

    单实例数据库多日志线程,搭建ogg,启动抽取进程时提示一下错误: ERROR   OGG-00446  Oracle GoldenGate Capture for Oracle, extjms.prm ...

  6. [W pthreadpool-cpp.cc:90] Warning:Leaking Caffe2 thread-pool after fork.(function pthreadpool)

    训练时在每一个epoch结束后就会出现好几行这个警告: 解释一: 原因是:线程撕裂,出现了警告,警告数量为设置的线程数量,32个: 大家说无关紧要,说是如果把线程数改小一些,就不会有警告了,但是会影响 ...

  7. [W pthreadpool-cpp.cc:90] Warning: Leaking Caffe2 thread-pool after fork. (function pthreadpool)

    参考:https://blog.csdn.net/wcy5135/article/details/120419858 yolov5-6.2代码修改:

  8. export命令在Mac Pycharm上如何设置环境变量!_ CodingPark编程公园

    引言 为什么想起写一下这篇文章呢? 今天看到了这么一句话 [W ParallelNative.cpp:206] Warning: Cannot set number of intraop thread ...

  9. Mac使用DataLoader(dataset=voc_train, batch_size=64, shuffle=False, num_workers =4) 出错

    Warning: Cannot set number of intraop threads after parallel work has started or after set_num_threa ...

最新文章

  1. Scala类型系统——高级类类型(higher-kinded types)
  2. 适合python的笔记本配置-jupyter之配置自己喜欢的python环境
  3. 请求https错误: unable to find valid certification
  4. 十天学会ASP.net
  5. Google: 如何做code review?
  6. 奇小葩讲设备树(1/5)-- Linux设备树详解(一) 基础知识
  7. centos卸载内核_CentOS 中内核模块的加载和卸载
  8. aix 查看防火墙状态_Linux 7.x 防火墙amp;端口
  9. mysql故障排查思路_Mysql高负载排查思路
  10. 使用Java实现邮件的发送
  11. 计算机网络工程税收分类编码,税控开票系统商品和服务税收分类编码操作手册...
  12. 大学生静态HTML网页源码——佛山旅游景点介绍网页代码 家乡旅游网页制作模板 web前端期末大作业
  13. 森林中的兔子java
  14. java实现移位密码的加密
  15. VC实现EXCEL转换为CSV格式
  16. 说一说 ArrayList 的扩容机制
  17. 数据科学导论python语言实现_数据科学导论:Python语言实现(原书第2版)
  18. 微信小程序 图片验证码展示
  19. 数据文件储存服务器入什么科目,云服务器会计上入什么科目
  20. 优秀网页翻译:一个智能旋钮:DIY haptic input knob: BLDC motor + round LCD

热门文章

  1. Maven的基本使用方法
  2. python3 TypeError: 'map' object is not subscriptable
  3. 计算机打印途中卡住,联想打印机经典故障处理方法
  4. c语言指针一览第一部分(新手向)
  5. 网闸、防火墙、保垒机
  6. 沙盘SandBoxie4.14 特别版+无限试用补丁
  7. 房租大涨?Python6个维度,数万条数据帮你揭穿
  8. 狼性团队也需柔性管理
  9. 红海厮杀的超融合 泽塔云竟用GPU云开辟一片蓝海
  10. 【web渗透】appscan 免费版下载