Hi team,
I am looking for your help in replicating the list based indexing functionality of numpy in ::Tensors.
For example:
a = np.zeros((100, 100))
xs = [1, 2, 5, 6]
ys = [4, 5, 7, 3]

res = a[xs, ys].

Replicating it in torch c++:
auto a = tensor::zeros({100, 100});

int xs[] = {1, 2, 3};
int ys[] = {1, 2, 3};

auto xs = torch::from_blob(xs, {3}, torch::kInt);
auto ys = torch::from_blob(ys, {3}, torch::kInt);

/* doing the following results in a  memory access error */
auto result = a[xs][ys];

My apologies if it is a cause of something silly.
Best,
Kaunil D.