import torch x = torch.tensor([[1, 2, 3], [4, 5, 6]]) x.size() >>> torch.Size([2, 3]) dim – Returns a tensor dimension: import torch x = torch.tensor([[1, ...
確定! 回上一頁