Torch defines 10 tensor types with CPU and GPU variants which are as follows: ... x = torch.tensor([[1, 2, 3], [4, 5, 6]]) >>> print(x[1][2]) tensor(6) ...
確定! 回上一頁