Suppose I have a 2D tensor looking something like this:
[[44, 50, 1, 32],
.
.
.
[7, 13, 90, 83]]
and a list of row indices that I want to select that looks something like this [0, 34, 100, ..., 745]. How can I go through and create a new tensor that contains only the rows whose indices are contained in the array?