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

Method mhlo

imperative/python/megengine/xla/compile.py:551–556  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

549
550 # Return an MHLO IR of computation
551 def mhlo(self) -> ir.Module:
552 module_str = xla_extension.mlir.stablehlo_to_mhlo(
553 ir_utils.module_to_bytecode(self.stablehlo())
554 )
555 with self.stablehlo().context:
556 return ir.Module.parse(module_str)
557
558 # Return a StableHLO IR of computation
559 def stablehlo(self) -> ir.Module:

Callers 4

as_textMethod · 0.95
compiler_irMethod · 0.95
mhloMethod · 0.45
mhloMethod · 0.45

Calls 2

stablehloMethod · 0.95
parseMethod · 0.45

Tested by

no test coverage detected