深度学习框架Pytorch快速开发与实践

决定用两个星期读完这本书,并自己用Pytorch搭建一个模型。

2019.8.5

第一章深度学习介绍

明确学习目标:

  • 深度学习难点不是深度学习本身,难的是你要吃透问题,如何用深度学习的逻辑去思考你自己的问题,有针对性地设计模型
  • 难的是你有分析问题贺结果的能力,遇到负面结果不是抓瞎。

 

2019.8.6

第三章 PyTorch基础知识

在GPU上Tensor 加速计算,常见Tensor类型:

DateCPU tensorGPU tensor
32-bit floating pointtorch.FloatTensor torsh.cuda.FloatTensor
64-bit floating pointtorch.DoubleTensor torsh.cuda.DoubleTensor
16-bit floating pointtorch.HalfTensor torsh.cuda.HalfTensor
8-bit integer(unsigned)torch.ByteTensor torsh.cuda.ByteTensor
8-bit integer(signed)torch.CharTensor torsh.cuda.CharTensor
16-bit integer(signed)torch.ShortTensor torsh.cuda.ShortTensor
32-bit integer(signed)torch.IntTensor torsh.cuda.IntTensor
64-bit integer(signed)torch.LongTensor torsh.cuda.LongTensor

构造矩阵:torch.Tensor(4,5)#4*5矩阵

矩阵加法:torch.add(a,b) # 矩阵a+b

Tensor转numpy:b=z.numpy()#z转numpy

numpy转Tensor:#

去除dim维并返回:torch.squeeze(input,dim,out=None)

数学操作:torch.abs/torch.acos/torch.add

数理统计:torch.mean(input)/torch.mean(input,dim,out=None)#输入张量input指定维度dim中每行的平均值

比较操作:torch.eq#比较元素相等/torch.ge/torch.gt

 

2019.8.7.

第四章 简单案例入门

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值