import torch a = torch.Tensor([[1,2,3],[4,5,6]]) a.view(3,-1) >>> tensor([[1., 2.], [3., 4.], [5., 6.]]) a.view(3,-1).shape >>> torch.
確定! 回上一頁