
pytorch
洛洛洛洛洛洛洛
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
pytorch学习笔记1:张量
目录 Tensor与numpy相互转换: torch.ones(),torch.add(),torch.zeros(),torch.squeeze() Tensor与numpy相互转换: import torch x=torch.Tensor(2,3)#生成一个4*5的Tensor张量 将Tensor转换为numpy数组 y=x.numpy() 将numpy数组转换为Tenso...原创 2019-06-07 16:43:48 · 1574 阅读 · 0 评论 -
pytorch学习笔记2:比较操作
目录 torch.eq torch.equal torch.ge torch.gt torch.eq torch.eq(input, other, out=None) → Tensor 比较元素相等性。第二个参数可为一个数或与第一个参数同类型形状的张量。 参数: input (Tensor) – 待比较张量 other (Tensor or float) – 比...原创 2019-06-07 16:57:17 · 774 阅读 · 0 评论