摘要: pytorch学习笔记(一) 数据操作实现 1.arange() 用于输出从 0~所设值-1 的向量 x = torch.arange(12) #输出从0到11的一维向量 x #out: tensor([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]) 2.shape 阅读全文
posted @ 2021-04-28 22:41 Rubyen2333 阅读(217) 评论(0) 推荐(0) 编辑