Finding the indexing code

It’s totally a dum question, sorry!,
But I couldn’t find where the indexing code is defined for the Torch tensor.
Could someone point me to that?

The CPU indexing should be found here, which would call into get_item.

1 Like