ml_switcheroo.discovery.syncer ============================== .. py:module:: ml_switcheroo.discovery.syncer .. autoapi-nested-parse:: Discovery Tool for linking Framework implementations to Standards. This module scans installed libraries (e.g., Torch, JAX, TensorFlow, MLX) for functions that match the names defined in the Semantic Knowledge Base. Links: - Hub (Spec): "Abs(x)" - Spoke (Lib): "torch.abs" Logic: 1. Module Discovery via FrameworkAdapters. 2. Name Matching (`torch.abs` matches `Abs`). 3. Signature Compatibility Verification. (Robust against C-Exts). Classes ------- .. autoapisummary:: ml_switcheroo.discovery.syncer.FrameworkSyncer Module Contents --------------- .. py:class:: FrameworkSyncer Links abstract operations to concrete framework implementations. .. attribute:: console A configured Rich console for logging output. .. py:attribute:: console .. py:method:: sync(tier_data: Dict[str, Any], framework: str) -> None Updates the 'variants' dict in tier_data by hunting for ops in the target framework.