import torch a = torch.rand(4,3,28,28) # index_select(dim,index)中的dim ... 索引,表示取第index个元素 print(a.index_select(0,torch.tensor([0 ...
確定! 回上一頁