Pytorch错误:Torch not compiled with CUDA enabled
一、问题
今天跑一个项目代码遇到了一个问题,大致是pytorch和CUDA版本不匹配,然后我就降低pytorch版本,结果1.7中网络不包含我所需的函数,我直接pip install pytorch==1.8,这样产生了错误:Torch not compiled with CUDA enabled。
二、解决方法
nvcc -V
检查一下当前CUDA版本
根据自己的CUDA版本下载安装whl文件
参考链接:https://download.pytorch.org/whl/torch_stable.html
分别
pip install torch-1.8.1+cu101-cp38-cp38-linux_x86_64.whl
pip install torchcsprng-0.2.1+cu101-cp38-cp38-linux_x86_64.whl
pip install torchvision-0.9.1+cu101-cp38-cp38-linux_x86_64.whl
Pytorch错误:Torch not compiled with CUDA enabled相关推荐
- AssertionError: Torch not compiled with CUDA enabled【pycharm/python3/pip】
目录 问题 查阅资料 解决步骤 1.检查pytorch版本.是否有CUDA 2.安装CUDA前看电脑的显卡驱动程序版本.支持的最高版本 3.安装CUDA和cuDNN 4.卸载pytorch 5.重新安 ...
- Torch not compiled with CUDA enabled 报错的归纳总结
以前总是嫌装环境太麻烦,碰到些需要用到GPU的项目都不想去复现了...这次因为论文需要,下定决心要把pytorch的安装问题搞定,但是期间遇到了很多问题,最烦人的莫过于这个' AssertionErr ...
- AssertionError: Torch not compiled with CUDA enabled到底是什么原因
代码运行报错AssertionError: Torch not compiled with CUDA enabled 但是根据cuda安装显示 cuda是安装成功的 这是怎么回事 我先进入百度翻译 A ...
- 解决 AssertionError Torch not compiled with CUDA enabled
最近在矩池云的的Tesla K80机子上跑MMYOLO,跟着MMYOLO官方文档<自定义数据集 标注+训练+测试+部署 全流程 >操作到 "2.1.1 软件或者算法辅助" ...
- AssertionError: Torch not compiled with CUDA enabled解決方案
在執行pytorch代碼的時候,突然看到報錯 AssertionError: Torch not compiled with CUDA enabled 這說明了 1. 你pytoch确实安装了 2. ...
- Torch not compiled with CUDA enabled
Torch not compiled with CUDA enabled 如果没有可用的显卡资源,则检查代码,把调用显卡资源的部分全部去掉即可 https://blog.csdn.net/qq_403 ...
- 成功解决raise AssertionError(“Torch not compiled with CUDA enabled“)AssertionError: Torch not compiled
成功解决raise AssertionError("Torch not compiled with CUDA enabled") AssertionError: Torch not ...
- AssertionError: Torch not compiled with CUDA enabled 解决方案
报错 Traceback (most recent call last):File "main_pretrain.py", line 250, in <module>m ...
- 报错 AssertionError: Torch not compiled with CUDA enabled
报错: AssertionError: Torch not compiled with CUDA enabled 本文针对仅有CPU无GPU的设备,针对该报错进行修改: 在代码开头添加: // A c ...
最新文章
- mysql+翻页性能,mysql 翻页优化
- ajax基础学习笔记
- 生活只是需要一种积极的态度
- 我对新版CCNP考试的一点想法
- Android Motion Stills实现AR即时运动捕捉
- 程序员必定会爱上的10款软件
- Android 自定义属性(attrs.xml,TypedArray)
- 他说:越成熟,越觉得自己平庸
- php 两个符号怎么打,怎么打出圈2符号
- python使用turtle步骤_Python+turtle交互式绘图:可以用鼠标拖动的小海龟
- godaddy mysql 连接 设置 2014_GoDaddy主机数据库远程访问设置的方法
- 2015 年最流行的 10 个 Linux 发行版
- android-async-http框架之与网络进行数据交互
- 【每日一具18】基于HTTP协议的局域网文件共享软件
- Pcblayout——立创EDA
- 第五章 用正三和弦为平稳旋律配和声
- java文档翻译,将word文件翻译该怎么操作?
- 世界杯花样营销:争夺32亿人眼球中看到三大趋势
- jpress转换html5,docker-compose安装jpress(这种是war包和生成文件在宿主机,运行在docker上)...
- 2022 中小企业快成长之年,上云 选对平台是关键,这次我站华为云