1.torch.size() is essentially a tuple. from __future__ import print_function. import torch. x = torch.Tensor(5, 3). print(x.size()[0]) # Print the row ...
確定! 回上一頁