Where is Sparse Indexing Defined?

Hi folks,

I’m looking for the definitions of the get_index functions for COO (coalesced and uncoalesced) as well as compressed sparse tensors. I’ve found the index set function (I think): pytorch/SparseTensorImpl.cpp at 825f4e602b766545a4ee6dfd971056e24c7dbbe8 · pytorch/pytorch · GitHub, but can’t find its complement.

Thanks!