Skip to content

Fix the reflection padding optimization when slice_by_index's end_mask is not specified #2489

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 29, 2025

Conversation

kasper0406
Copy link
Contributor

Before this PR, the added tests would error with an undefined attribute error, when end_mask was not specified on the slice_by_index operations.

Instead of bailing out of the optimization, if end_mask is not specified, this PR will infer the values of end_mask.

@kasper0406 kasper0406 changed the title Fix the reflection padding optimization when the slice_by_index op's end_mask is not specified Fix the reflection padding optimization when slice_by_index's end_mask is not specified Apr 20, 2025
@TobyRoseman TobyRoseman self-requested a review April 21, 2025 21:36
@TobyRoseman TobyRoseman self-assigned this Apr 21, 2025
@TobyRoseman
Copy link
Collaborator

@TobyRoseman
Copy link
Collaborator

Thanks for the update. I've kicked off another CI run: https://gitlab.com/coremltools1/coremltools/-/pipelines/1780189371

The last CI run passed. If this one passes, I will merge the PR.

@kasper0406
Copy link
Contributor Author

@TobyRoseman looks like the CI job passed, are you happy to merge this?

@TobyRoseman TobyRoseman merged commit 4d79312 into apple:main Apr 29, 2025
@kasper0406 kasper0406 deleted the kn/fix-mask-check branch April 29, 2025 17:45
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