print(shape[0]) 3 >>> print(shape[1]) 2 Now, since you know what a tensor is and how one can be created, ... x = torch.ones(3,2) >>> x tensor([[1., 1.] ...
確定! 回上一頁