Hi. I am trying to index a tensor using the following syntax
tensor = tensor.index(booleanIndexTensor);

This works before for some previous version of Torch c++. However, when I try with Pytorch 1.8, it throws the following error
error: no matching function for call to ‘at::Tensor::index(at::Tensor&)’

It seems like the API has changed, but I couldn’t find the new syntax anywhere else. Could you please let me know how I can adapt it for newer versions. Thanks a lot!