Pytorch基础教程 Tensor tensor表示存放数据的容器,可以存放一维向量、二维矩阵、多维张量 a.numel()大小 a.dim()返回维度 view/reshape squeeze/unsqueeze expand/repeat torch.all(torch.eq(a,a1)) permute Pytorch进阶教程 Broadcasting自动扩张 tensor拼接与拆分 Cat、Stack/Split、Chunk 加减乘除等数学运算