FloatTensor of size 3x4] 8 9>>> indices = torch.LongTensor([0, 2]) 10>>> torch.index_select(x, 0, indices) 11 12 1.2045 2.4084 0.4001 1.1372 13 1.3635 ...
確定! 回上一頁