Numpy/torch: Reindexing batch of vectors by batch of indexes In numpy/torch – for vector v and another vector of indices we can reindex :