Resize a Tensor in PyTorch. Apr 12, 2020. In [2]:. import torch. In [13]:. x = torch.tensor([ [1, 2, 3, 4, 5], [6, 7, 8, 9, 10], ]) x. Out[13]:.
確定! 回上一頁