Skip to content

[DT] Mark partial slices unsupported in padding encoding resolver. - #22359

Merged
hanhanW merged 1 commit into
iree-org:mainfrom
hanhanW:pad-add-check-bad
Oct 21, 2025
Merged

hanhanW merged 1 commit into
iree-org:mainfrom
hanhanW:pad-add-check-bad

Conversation

@hanhanW

@hanhanW hanhanW commented Oct 20, 2025

Copy link
Copy Markdown
Contributor

The implementation was wrong; the tests are missing. It addresses a post review comment: https://github.com/iree-org/iree/pull/22339/files#r2438738373

@kuhar kuhar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good but could we add a test?

@hanhanW

hanhanW commented Oct 21, 2025

Copy link
Copy Markdown
Contributor Author

Looks good but could we add a test?

We can only add negative test, but we don't test all corner cases. This PR should be treated as a post-fix of the other PR.

Comment on lines +591 to +593
// TODO(hanchung): Enable partial slices. It was copied from pattern's
// implementaion, i.e., the users, and it can be dropped after we move the
// checks to the interface implementations.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I am unsure about in which case this check can be dropped in the future? Do you want to support partial slices here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, I plan to do it in a follow-up. I think it is very similar to #22360. The main difference between the two resolvers is that the padding resolver gets padded DispatchTensorType while the identity resolver gets the original DispatchTensorType. The offsets/strides/sizes and RankedTensorType types used in compute ops are the same.

@jtuyls jtuyls left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@hanhanW
hanhanW merged commit b9054d2 into iree-org:main Oct 21, 2025
@hanhanW
hanhanW deleted the pad-add-check-bad branch October 21, 2025 17:01
pstarkcdpr pushed a commit to pstarkcdpr/iree that referenced this pull request Nov 28, 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.

3 participants