ml_switcheroo.compiler.frontends.sass.analysis ============================================== .. py:module:: ml_switcheroo.compiler.frontends.sass.analysis .. autoapi-nested-parse:: SASS Instruction Analyzer. This module implements heuristics to extract high-level semantic parameters (like Loop Bounds, Kernel Sizes, etc.) by analyzing the raw SASS instructions AST generated by the parser. Classes ------- .. autoapisummary:: ml_switcheroo.compiler.frontends.sass.analysis.SassAnalyzer Module Contents --------------- .. py:class:: SassAnalyzer Analyzes sequences of SASS instructions to reverse-engineer high-level parameters. .. py:method:: analyze_block(kind: str, instructions: List[ml_switcheroo.compiler.frontends.sass.nodes.Instruction]) -> Dict[str, Any] :staticmethod: Extracts metadata from a block of instructions based on the operation kind. :param kind: The operation type (e.g. "Conv2d", "Linear"). :type kind: str :param instructions: The assembly lines inside the block. :type instructions: List[Instruction] :returns: Extracted parameters (e.g., {"kernel_size": 3}). :rtype: Dict[str, Any]