摘要: 创建tensor 1.torch.eye(n,m) 创建一个对角线为1,其他为0的2维tensor eg: x = torch.eys(3) 2.torch.linspace(start,end,steps) 创建一个1维tensor,start为3,end为10,共5个数 eg: x = torc 阅读全文
posted @ 2021-01-31 19:03 north_startx 阅读(169) 评论(0) 推荐(0) 编辑