arogozhnikov / eindex

Multidimensional indexing for tensors
107 stars 2 forks source link

Ellipsis support: collecting use-cases #7

Open arogozhnikov opened 1 year ago

arogozhnikov commented 1 year ago

Arbitrary-dim operations on indexing are very rare, and correct implementation isn't simple.

Ellipsis for indexing can appear in multiple roles (as reduced axes, as indexers, as batch-like axes, etc.).

Supporting all of them at the same creates complex logic that is unlikely to ever pay off.

So this post collects different use-cases when ellipsis is indeed the right solution to the problem (yes, feel free to post your cases!)