Solved by ptrblck in post #2 
              
              
                I’m not really understand, what kind of indices you would like to slice. 
Are the indices in dim0? 
If so, you could just use: 
outputs = torch.randn(5, 3)
outputs[[2, 4], :]