MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / compiler_ir

Method compiler_ir

imperative/python/megengine/xla/compile.py:577–587  ·  view source on GitHub ↗
(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
590class MeshComputation(XlaLowering):

Callers

nothing calls this directly

Calls 3

mhloMethod · 0.95
stablehloMethod · 0.95
hloMethod · 0.95

Tested by

no test coverage detected