win10 + pytorch + gpu

创建环境 torchname【torch1.1】

conda create -n torch1.1 python=3.7.6

激活环境

conda activate torch1.1

下载PyTorch1.1 CUDA10.0

# CUDA 10.0
conda install pytorch==1.1.0 torchvision==0.3.0 cudatoolkit=10.0

之前的版本都在这里
https://pytorch.org/get-started/previous-versions/

jupyter notebook上运行 在condaprompt3

conda install -n pytorch ipykernel

在jupyter notebook中创建pytorch的kernel名称cuda10

python -m ipykernel install --name cuda10

查看torch安装成功没

torch.cuda.device_count()看有多少gpu

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值