That means you can prepend more than one dimension if you want: x = torch.randn(16) x = x[None, None, :] x.shape # Expected result # torch.
確定! 回上一頁