Skip to content

Implement PartitionableLoopsInterface for tensor.concat - #21082

Merged
IanWood1 merged 3 commits into
iree-org:mainfrom
IanWood1:concat_part_loops
Jun 13, 2025
Merged

IanWood1 merged 3 commits into
iree-org:mainfrom
IanWood1:concat_part_loops

Conversation

@IanWood1

Copy link
Copy Markdown
Member

No description provided.

SmallVector<unsigned> partitionableLoops;
partitionableLoops.reserve(rank - 1);
for (unsigned i = 0; i < rank; ++i) {
if (i != concatDim) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Some comment as to why the concat dim is not part of the partitionable loops would help. Took me a while to come to the answer.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I added a comment but I think it might be possible to tile the concated dim as long as its legal to concat a 0 size tensor.

@IanWood1
IanWood1 enabled auto-merge (squash) June 13, 2025 17:34
@IanWood1
IanWood1 merged commit c8edfb0 into iree-org:main Jun 13, 2025
AWoloszyn pushed a commit that referenced this pull request Dec 1, 2025
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.

2 participants