y = torch.rand(5, 3) # construct a randomly initialized matrix # 使用size方法可以获得tensor的shape信息,torch.Size 可以看做tuple
確定! 回上一頁