摘要: 定义张量 X = torch.tensor([[0.0, 1.0, 2.0], [3.0, 4.0, 5.0], [6.0, 7.0, 8.0]]) 张量转置 X.t() 定义全0、全1张量 torch.zeros((6,8)) torch.ones((6, 8)) 单位张量 torch.eye(n 阅读全文
posted @ 2022-05-10 17:58 老裴菌 阅读(240) 评论(0) 推荐(0)