Pytorch 風格的索引根據Tensor的shape,從前往後索引,依次在每個維度上做 ... import torch a = torch.rand(4, 3, 28, 28) print(a[0].shape) #取到第 ...
確定! 回上一頁