文章目录

  • 问题描述
  • 解决方法
  • 参考

问题描述

使用 pytorch jit 自己写的模型的时候,显示了以下错误:

/home/chiebotgpuhq/anaconda3/envs/kp2dn/lib/python3.7/site-packages/torch/jit/_trace.py:966: TracerWarning: Output nr 1. of the traced function does not match the corresponding output of the Python function. Detai
led error:
With rtol=1e-05 and atol=1e-05, found 32400 element(s) (out of 32400) whose difference(s) exceeded the margin of error (including 0 nan comparisons). The greatest difference was 0.5389723181724548 (0.7940412759780
884 vs. 0.25506895780563354), which occurred at index (0, 0, 59, 170).                                                                                                                                               _module_class,

解决方法

模式使用eval()模式,加载模型权重,删去模型中关于 cuda 操作.

参考

  • https://github.com/pytorch/pytorch/issues/23999#issuecomment-747832122

报错:TracerWarning: Output nr 1. of the traced function does not match the corresponding output of the相关推荐

  1. npm报错 This is probably not a problem with npm,there is likely additional logging output above可能的原因

    1 npm WARN Local package.json exists, but node_modules missing, did you mean to install? 解决方法: 输入npm ...

  2. VueJS项目报错解决:router.map is not a function - 方法大全

    VueJS项目报错解决:router.map is not a function - 方法大全 问题描述: vue报错 router.map is not a function 原因和解决办法(2种以 ...

  3. 立即执行函数报错Uncaught TypeError: (intermediate value) is not a function.

    立即执行函数报错Uncaught TypeError: (intermediate value) is not a function. 文章目录 立即执行函数报错Uncaught TypeError: ...

  4. 报错:Uncaught TypeError: $(…).dialog is not a function,处理方法。

    在写前端queryselfplan.js代码时运用 $.dialog({type: 'alert',content: '该计划未创建'}); 报错:Uncaught TypeError: $(-).d ...

  5. RK3588在SSH上启动OpenCV报错:Can‘t initialize GTK backend in function ‘cvInitSystem‘

    RK3588在SSH上启动OpenCV报错:Can't initialize GTK backend in function 'cvInitSystem' 1.问题 2.参考资料 3.解决 2023- ...

  6. layui弹出层,报错:TypeError: layer.open is not a function

    在使用layui弹出层时,浏览器出现报错:TypeError: layer.open is not a function 报错错误如图: 修改: 添加 var layer = layui.layer; ...

  7. Vue启动报错This is probably not a problem with npm. There is likely additional logging output above.

    出现原因:Vue项目中node_modules包里缺少相关插件和依赖,当拉取别人的项目时不能直接运行. 第1步 删除项目中的 node_modules 文件夹和 package-lock.json 文 ...

  8. rocksdb报错解决:librocksdb.a(format.o): In function `Zlib_Uncompress':

    在使用rocksdb的时候遇到了报错: build64_release.rep125/my_kv/rocksdb-6.1.2/librocksdb.a(format.o): In function ` ...

  9. Keil5报错:error: more than one instance overload function “xx“ has C linkage

    转自:https://blog.csdn.net/malloc_luo/article/details/104437926 用Keil编写C.C++混编程序碰到了这个问题 #ifdef __cplus ...

  10. 运行报错error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

    问题cv2.resize()报错 cv2.error: OpenCV(3.4.3) C:\projects\opencv-python\opencv\modules\imgproc\src\resiz ...

最新文章

  1. 程序员创业,不要把风险带给家人!——Leo网上答疑(4).
  2. MINA2-TCP服务端实例
  3. python numpy矩阵切片和索引的用法(冒号:和省略号...)
  4. React之类式组件
  5. dwc_otg驱动 BUG: sleeping function called from invalid context at mm/page_alloc.c
  6. JavaEE error整理(不断更新)
  7. 关于嵌入式可执行程序,你了解多少?
  8. 蓝桥杯 BASIC-2 基础练习 01字串
  9. FileUriExposedException异常:file://与content://
  10. 浅谈深度信念网络(Deep Belief Network)
  11. Uri.parse()的各种用法
  12. 《把信送给加西亚》读书笔记(摘抄)
  13. 网上医疗预约挂号系统
  14. mipi传输距离3米_弱电网络工程中网线大于100米怎么办?离300米远用什么线缆较好?...
  15. 射频原理图设计checklist
  16. Vue3实现打字机效果
  17. 普通话测试软件字体怎么调整,普通话考试常见问题解答
  18. 弹出文件夹选择对话框
  19. 浏览器踩坑:浏览器访问已发布服务器的网址显示跨域,但微信浏览器可以正常访问,别人的浏览器也可以正常访问
  20. 挑战杯课外学术科技作品竞赛如何冲入国赛

热门文章

  1. u盘变o字节怎么修复_U盘变成0字节了数据怎么恢复
  2. 绝对值对应c语言表达式,c语言绝对值函数?
  3. 社区人物志|缪翎:见证开源世界的女性力量
  4. 量子计算机基地边缘,为什么三体人可以吊打地球文明?记忆继承、思想共享是关键...
  5. 享元模式(羽量级模式、蝇量级模式Flyweight,对象结构型模式)
  6. C语言typedef和define、字节对齐的问题
  7. 野蛮生长过后,机器人产业“标准化”号角已吹响
  8. 26岁考计算机研究生,26岁考研究生好还是考公务员好?总结得太精辟了
  9. 电脑hosts文件位置
  10. 系统间通讯实现数据信息实时同步解决方案