Hi @Acapello
How about torch.index_select https://pytorch.org/docs/stable/torch.html#torch.index_select 3 ?
for indexes in list_of_indexes:
    print(torch.index_select(X, 0, torch.LongTensor(indexes)))

My toy sample is
In [1]: import torch

In [2]: import numpy as np

In [3]: x = np.random.normal(size=(10, 4)).astype(np.float32)

In [4]: x = torch.from_numpy(x)

In [5]: torch.index_select(x, 0, torch.LongTensor([1, 3]))
Out[5]: 
tensor([[-0.5863, -1.2383, -0.8615,  0.1059],
        [-0.2208,  0.7738,  1.1371, -0.9917]])