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

[StableHLO][CHLO] Port CHLO decomposition patterns #13838

Merged
merged 3 commits into from
May 30, 2023
Merged

Conversation

kuhar
Copy link
Member

@kuhar kuhar commented May 30, 2023

These are ported from the mlir-hlo project. For more context, see the initial import: #12957.

The biggest difference it the removal of most FileCheck CHECK lines in tests. MHLO hardcoded thousands lines of exact decomposition sequences that fell apart after due to different canonicalizations and folds. Without a script to regenerate these CHECKs, these tests were not maintainable and I decided to drop them. Now we only check that the dialect conversion succeeded.

Other notable differences to the MHLO implementation:

  • Ported some utility functions and tablegen defs.
  • New chlo.tan lowering, since StableHLO does not provide a tan op.

Issue: #13803

These are ported from the mlir-hlo project. For more context, see the
initial import: iree-org#12957.

The biggest difference it the removal of most FileCheck CHECK lines in
tests. MHLO hardcoded thousands lines of exact decomposition sequences
that fell apart after due to different canonicalizations and folds.
Without a script to regenerate these CHECKs, these tests were not
maintanable and I decided to drop them. Now we only check that the
dialect conversion succeeded.

Other notable differences to the MHLO implementation:
-  Ported some utility functions and tablegen defs.
-  New `chlo.tan` lowering, since StableHLO does not provide a tan op.

Issue: iree-org#13803
@kuhar kuhar merged commit 8c41e51 into iree-org:main May 30, 2023
jvstokes pushed a commit to jvstokes/iree that referenced this pull request Jun 4, 2023
These are ported from the mlir-hlo project. For more context, see the
initial import: iree-org#12957.

The biggest difference it the removal of most FileCheck CHECK lines in
tests. MHLO hardcoded thousands lines of exact decomposition sequences
that fell apart after due to different canonicalizations and folds.
Without a script to regenerate these CHECKs, these tests were not
maintainable and I decided to drop them. Now we only check that the
dialect conversion succeeded.

Other notable differences to the MHLO implementation:
-  Ported some utility functions and tablegen defs.
-  New `chlo.tan` lowering, since StableHLO does not provide a tan op.

Issue: iree-org#13803
NatashaKnk pushed a commit to NatashaKnk/iree that referenced this pull request Jul 6, 2023
These are ported from the mlir-hlo project. For more context, see the
initial import: iree-org#12957.

The biggest difference it the removal of most FileCheck CHECK lines in
tests. MHLO hardcoded thousands lines of exact decomposition sequences
that fell apart after due to different canonicalizations and folds.
Without a script to regenerate these CHECKs, these tests were not
maintainable and I decided to drop them. Now we only check that the
dialect conversion succeeded.

Other notable differences to the MHLO implementation:
-  Ported some utility functions and tablegen defs.
-  New `chlo.tan` lowering, since StableHLO does not provide a tan op.

Issue: iree-org#13803
nhasabni pushed a commit to plaidml/iree that referenced this pull request Aug 24, 2023
These are ported from the mlir-hlo project. For more context, see the
initial import: iree-org#12957.

The biggest difference it the removal of most FileCheck CHECK lines in
tests. MHLO hardcoded thousands lines of exact decomposition sequences
that fell apart after due to different canonicalizations and folds.
Without a script to regenerate these CHECKs, these tests were not
maintainable and I decided to drop them. Now we only check that the
dialect conversion succeeded.

Other notable differences to the MHLO implementation:
-  Ported some utility functions and tablegen defs.
-  New `chlo.tan` lowering, since StableHLO does not provide a tan op.

Issue: iree-org#13803
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