Pytorch 风格的索引. 根据Tensor的shape,从前往后索引,依次在每个维度上做索引。 示例代码:. import torch a = torch.rand(4, 3, 28, 28) print(a[0].shape) #取到第 ...
確定! 回上一頁