ml_switcheroo.core.mlir.stablehlo_emitter ========================================= .. py:module:: ml_switcheroo.core.mlir.stablehlo_emitter .. autoapi-nested-parse:: StableHLO Emitter Backend. Translates Python CST to MLIR using the StableHLO dialect for math operations and the Func/Builtin dialects for structure. It relies on the SemanticsManager to map Python source APIs (like `torch.abs`) to StableHLO operations (like `stablehlo.abs`). Classes ------- .. autoapisummary:: ml_switcheroo.core.mlir.stablehlo_emitter.StableHloEmitter Module Contents --------------- .. py:class:: StableHloEmitter(semantics: ml_switcheroo.semantics.manager.SemanticsManager) Bases: :py:obj:`ml_switcheroo.core.mlir.emitter.PythonToMlirEmitter` Specialized Emitter that produces StableHLO, Func, and Builtin dialect operations. .. py:attribute:: semantics