Skip to content

Moving HLO tuple/control flow handling up to the TF importer. - #5104

Merged
benvanik merged 1 commit into
mainfrom
benvanik-hlo-1
Mar 19, 2021
Merged

benvanik merged 1 commit into
mainfrom
benvanik-hlo-1

Conversation

@benvanik

Copy link
Copy Markdown
Collaborator

This also allows us to receive HLO in SCF form as input, similar to how
TOSA is being imported.

The current HLO->SCF pass is only partially working, though, so we'll
still be going to CFG in all but the simple case it handles. I'd still
rather be working towards SCF as input, though, and this is a fine
placeholder.

@benvanik benvanik added the integrations/tensorflow TensorFlow model import and conversion label Mar 14, 2021
@google-cla google-cla Bot added the cla: yes label Mar 14, 2021
Base automatically changed from benvanik-sip to main March 15, 2021 16:47
@benvanik
benvanik force-pushed the benvanik-hlo-1 branch 2 times, most recently from 2bb2088 to 2aa06d5 Compare March 15, 2021 20:37
@benvanik benvanik added the compiler/dialects Relating to the IREE compiler dialects (flow, hal, vm) label Mar 15, 2021
@benvanik
benvanik marked this pull request as ready for review March 15, 2021 21:22
This also allows us to receive HLO in SCF form as input, similar to how
TOSA is being imported.

The current HLO->SCF pass is only partially working, though, so we'll
still be going to CFG in all but the simple case it handles. I'd still
rather be working towards SCF as input, though, and this is a fine
placeholder.
@benvanik
benvanik merged commit 3055f2d into main Mar 19, 2021
@benvanik
benvanik deleted the benvanik-hlo-1 branch March 19, 2021 17:10
GMNGeoffrey added a commit that referenced this pull request Mar 20, 2021
In #5101 I accidentally removed
bindings/python tests from the CI because I assumed that they would be
covered not in the integrations build. It turns out that we have
tests depending on the TF integrations living under bindings/python
(gross. #5181). So when
#5104 moved MHLO tuple and control
flow legalization out of core, we didn't catch the test failure for
JAX.

This adds passes to convert from MHLO as produced by XLA->MHLO
translation to the form accepted by IREE. As we move more towards
making linalg on tensors our input and push more MHLO out of IREE core
the pipeline here will likely grow.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

compiler/dialects Relating to the IREE compiler dialects (flow, hal, vm) integrations/tensorflow TensorFlow model import and conversion

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants