Tensors are the most basic building blocks in PyTorch . ... tensor([[0, 1], [2, 3], [4, 5]]) ... Get the size of the 0th dimension x.size(0). Out[19]:.
確定! 回上一頁