To get the size you can use Tensor.size() method or Tensor.shape property and to get the ... torch.Size([4]) 1 torch.Size([2, 3]) 2.
確定! 回上一頁