![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Pytorch
buer103
计算机
展开
-
np.meshgrid()理解
meshgrid()原创 2022-07-23 19:24:49 · 760 阅读 · 0 评论 -
动手深度学习Pytorch版学习笔记(一)——Tensor张量
前言 开始沐神的《动手深度学习》pytorch 的学习 ,这边作为学习笔记的记录 当做自我监督 环境的搭建 这边就不记录了 实验室 以及自己的笔记本 配置的是GPU版本的 不过笔记本不用的还是CPU版本为主 1. 创建 # 导入 import torch 同numpy创建Ndarray基本一致 x1 = torch.tensor([[3,3,3],[4,4,4]]) x2 = torch.rand(3,5) #0-1 随机 x3 = torch.zeros((3,3),dtype=tor原创 2021-11-12 18:14:30 · 1208 阅读 · 1 评论