I want to use a boolean as index with aten, there is a masked_select that does the job but flattens the output (I can use view to correct that).
How is indexing with a boolean array implemented in aten (does it call masked_select and then change the view)?
IOW, masked_select returns a different shape than using [], what is the equivalent of [] in aten/C++?
Did you find out how to do this? I am having the same issue and I am pondering what the best method is (e.g. using masked_select and then view, or converting the boolean mask to int and doing index_select)