Skip to content
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

Support inplace generic in compare-select to max rewrite #956

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

adam-smnk
Copy link
Collaborator

Simplifies conversion to only change generic's body operation without affecting operation operands. This prevents crashes when generic has inplace format.

Originally the pass would also implicitly rewrite generic operation to be in place by replacing output with the input. This is removed to improve robustness and better separate concerns. Inplace rewrite will be handled by a separate pass later on.

@adam-smnk adam-smnk added the benchmark Triggers benchmark jobs label Aug 9, 2024
@adam-smnk adam-smnk requested a review from rengolin August 9, 2024 11:08
@adam-smnk
Copy link
Collaborator Author

PyTorch benchmarks will take a temporary hit in performance. This will be fixed by #955.

Simplifies conversion to only change generic's body operation without
affecting operation operands. This prevents crashes when generic has
inplace format.

Originally the pass would also implicitly rewrite generic operation
to be in place by replacing output with the input.
This is removed to improve robustness and better separate concerns.
Inplace rewrite will be handled by a separate pass later on.
@adam-smnk adam-smnk force-pushed the compare-to-max-inplace-fix branch from 8e72b66 to 1ea47c4 Compare August 9, 2024 11:11
@adam-smnk adam-smnk added benchmark Triggers benchmark jobs and removed benchmark Triggers benchmark jobs labels Aug 9, 2024
Copy link
Contributor

@rengolin rengolin left a comment

Choose a reason for hiding this comment

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

Good, the less we change in generics the better. Cleanups are better as a separate pass, like #955

@adam-smnk adam-smnk merged commit 6bdaf15 into plaidml:main Aug 9, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
benchmark Triggers benchmark jobs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants