ml_switcheroo.compiler.backend ============================== .. py:module:: ml_switcheroo.compiler.backend .. autoapi-nested-parse:: Compiler Backend Protocol. Defines the abstract interface for backends that consume the Logical Graph IR and emit target specific code (e.g. RDNA Assembly, SASS, or High-Level Python). Classes ------- .. autoapisummary:: ml_switcheroo.compiler.backend.CompilerBackend Module Contents --------------- .. py:class:: CompilerBackend Bases: :py:obj:`abc.ABC` Abstract base class for compilation backends. .. py:method:: compile(graph: ml_switcheroo.compiler.ir.LogicalGraph) -> Any :abstractmethod: Compiles the Logical Intermediate Representation (IR) into a target artifact. :param graph: The intermediate representation of the model structure. :type graph: LogicalGraph :returns: The compiled output (e.g., source code string, binary buffer, or AST). :rtype: Any