您当前的位置: 首页 >  pytorch

耐心的小黑

暂无认证

  • 1浏览

    0关注

    323博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

pytorch学习笔记十二:和GPU有关的基本操作以及如何创建支持多个GPU数据并行的模型

耐心的小黑 发布时间:2020-08-19 10:38:38 ,浏览量:1

一、GPU有关的基本操作
import torch 
from torch import nn 

1,查看gpu信息

if_cuda = torch.cuda.is_available()
print("if_cuda=",if_cuda)

gpu_count = torch.cuda.device_count(
关注
打赏
1640088279
查看更多评论
立即登录/注册

微信扫码登录

0.0361s