pytorch的安装与配置//CUDA与cuDNN版本的选择

pytorch的安装与配置:

CUDA与cuDNN版本的选择

1、打开NVIDIA设置,点击“帮助”
在这里插入图片描述
2、进入“系统信息”,显卡及驱动版本如红框所示,驱动版本为451.67
在这里插入图片描述
3、根据驱动版本和CUDA的对应关系,在此确定CUDA版本为CUDA10.2(因为2020年9月pytorch可支持的最大CUDA版本为10.2)

https://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html#cuda-major-component-versions

在这里插入图片描述
4、上CUDA官网下载CUDA10.2版本及其补丁
https://developer.nvidia.com/cuda-10.2-download-archive?target_os=Windows&target_arch=x86_64&target_version=10&target_type=exelocal
在这里插入图片描述
5、参考网上的教程进行CUDA的安装
此处推荐一个教程:https://www.cnblogs.com/arxive/p/11198420.html
6、根据CUDA版本,安装cudnn
cuDNN官网:https://developer.nvidia.com/rdp/cudnn-archive#a-collapse742-10
在这里插入图片描述

7、安装pythorch
根据对应的CUdA版本安装对应的pytorch
官网:https://pytorch.org/

在这里插入图片描述
(anaconda prompt)进入环境,输入指令:
pip install torch===1.6.0 torchvision===0.7.0 -f https://download.pytorch.org/whl/torch_stable.html
在这里插入图片描述

  • 12
    点赞
  • 30
    收藏
    觉得还不错? 一键收藏
  • 4
    评论
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值