【龙龙老师 pytorch】① 创建 tensor

(1)import from numpy
【龙龙老师 pytorch】① 创建 tensor
(2)import from list
tensor(data) VS Tensor(shape)
【龙龙老师 pytorch】① 创建 tensor
(3)uninitialized 未初始化数据
生成的数据大小不一 一定要跟写入数据的后续步骤
【龙龙老师 pytorch】① 创建 tensor
(4)set default tensor 设置默认类型
【龙龙老师 pytorch】① 创建 tensor
(5)随机初始化
【龙龙老师 pytorch】① 创建 tensor
【龙龙老师 pytorch】① 创建 tensor
(6)full
【龙龙老师 pytorch】① 创建 tensor
(7)arange/range

【龙龙老师 pytorch】① 创建 tensor
(8)linspace/logspace
【龙龙老师 pytorch】① 创建 tensor
(9)ones/zeros/eye
【龙龙老师 pytorch】① 创建 tensor
(10)randperm 随机打散
【龙龙老师 pytorch】① 创建 tensor
【龙龙老师 pytorch】① 创建 tensor