mat = torch.arange(9).view(3, -1). 2. . 3. tensor([[0, 1, 2],. 4. [3, 4, 5],. 5. [6, 7, 8]]). 6. . 7. torch.sum(mat, dim=-2).
確定! 回上一頁