Skip to content

Conversation

@hugolatendresse
Copy link
Contributor

Adding support in the exported translator for index_select.default, which was already supported by the FX translator. This is in the hope that index_select will be useful for index.Tensor, which is more complex and not currently supported by the FX translator.

@tqchen
Copy link
Member

tqchen commented Mar 30, 2025

cc @tlopex can you also help validate and review

Copy link
Member

@yongwww yongwww left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Hzfengsy Hzfengsy merged commit 2c80e5c into apache:main Apr 1, 2025
17 checks passed
@hugolatendresse hugolatendresse deleted the index_tensor branch April 1, 2025 03:00
ShiboXing pushed a commit to ShiboXing/tvm that referenced this pull request Aug 10, 2025
* suddenly copy.default is unsupported

* wip

* Able to split uneven tensors!

Remaining TODOs
Make sure that also works if we input a list of indices
Write tests at the py and cpp level
Cleanup

* split size test passes!

* test sizes and lists

* just one func

* cleanup

* no assert

* linting

* chunk

* remove unsused modulo

* fixed first test

* fixed second test and lint

* linting

* fix one test

* chunk not passing anymore

* get_item error

* chunk unit tests

* index select test passes

* fix test

* cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants