
Import torch导入包

Creating tensors创建张量

scalar标量

vector向量

matrix矩阵

3维tensor

Random tensors随机张量
torch.rand()


torch.zeros()

torch.ones()

torch.arange()

torch.zeros_like()

Manipulate tensors基本运算



torch.nn.Linear()

min, max, mean,sum

argmax, argmin

Tensor datatypes数据类型

转换数据类型
