pytorch报错:Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass RuntimeError: FIND was unable to find an engine to execute this computatio

GPU模式下运行pytorch代码报错,pytorch为2.2.1,NVIDIA驱动版本535.161.07



File "/home/devil/anaconda3/envs/sample-factory/lib/python3.11/site-packages/torch/_tensor.py", line 522, in backward
torch.autograd.backward(
File "/home/devil/anaconda3/envs/sample-factory/lib/python3.11/site-packages/torch/autograd/init.py", line 266, in backward
Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass
RuntimeError: FIND was unable to find an engine to execute this computatio



注意,这个其实不是报错,应该是警告,warning,因为没有影响代码的正常运行。




外网给出的解释:

  1. 地址:

https://github.com/Megvii-BaseDetection/YOLOX/issues/1642

image


  1. 地址:

https://discuss.pytorch.org/t/runtimeerror-get-was-unable-to-find-an-engine-to-execute-this-computation/193625/6

image


  1. 地址:

https://discuss.pytorch.org/t/runtimeerror-get-was-unable-to-find-an-engine-to-execute-this-computation/193625/3

image



总结来说,这个问题的出现是因为NVIDIA驱动版本过低了,一般是因为你选择使用了最新的版本的pytorch,因而使用配套的cuda和cudnn需要更高的版本的NVIDIA驱动(假设你使用conda安装pytorch,因此cuda和cudnn版本是已设置好的,没有问题,只有问题出现在驱动上),因此解决该问题就是需要更换一个更高版本的NVIDIA驱动。


PS. 如果你是使用多人共享的环境,如服务器,更新显卡驱动明显是一个麻烦和可行性低的选择,那么你可以换一个思路,那就是换用一个低版本的pytorch,这样同样可以解决这个问题。



posted on   Angry_Panda  阅读(2776)  评论(2编辑  收藏  举报

相关博文:
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通
历史上的今天:
2023-03-03 NVIDIA公司推出的GPU运行环境下的机器人仿真环境(NVIDIA Isaac Gym)在Ubuntu Server端headless运行
2022-03-03 联想还是中国企业吗,我们还应该支持联想吗?以后我还是不要选择联想的产品了吧
2022-03-03 tmux使用教程
2020-03-03 【转载】 tensorflow: 怎样找到对应的bazel 版本和安装

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示