Method
compiler_ir
(self, dialect: Optional[str] = None)
Source from the content-addressed store, hash-verified
| 575 | raise ValueError(f"unknown dialect: {dialect}") |
| 576 | |
| 577 | def compiler_ir(self, dialect: Optional[str] = None) -> Any: |
| 578 | if dialect is None: |
| 579 | dialect = "stablehlo" |
| 580 | if dialect == "mhlo": |
| 581 | return self.mhlo() |
| 582 | elif dialect == "stablehlo": |
| 583 | return self.stablehlo() |
| 584 | elif dialect == "hlo": |
| 585 | return self.hlo() |
| 586 | else: |
| 587 | raise ValueError(f"unknown dialect: {dialect}") |
| 588 | |
| 589 | |
| 590 | class MeshComputation(XlaLowering): |
Callers
nothing calls this directly
Tested by
no test coverage detected