ml_switcheroo.discovery.syncer

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

FrameworkSyncer

Links abstract operations to concrete framework implementations.

Module Contents

class ml_switcheroo.discovery.syncer.FrameworkSyncer

Links abstract operations to concrete framework implementations.

console

A configured Rich console for logging output.

console
sync(tier_data: Dict[str, Any], framework: str) None

Updates the ‘variants’ dict in tier_data by hunting for ops in the target framework.