ml_switcheroo.frameworksΒΆ
Framework Adapters Package.
Automatically discovers and registers framework adapters by scanning this directory for modules. This allows for βZero-Editβ extensibility: simply drop a new adapter file (e.g., tinygrad.py) into this folder, and it will be automatically registered.
This module exposes the registry helpers (get_adapter, available_frameworks) but relies on the side-effects of importing submodules to populate the internal _ADAPTER_REGISTRY.
SubmodulesΒΆ
- ml_switcheroo.frameworks.base
- ml_switcheroo.frameworks.common
- ml_switcheroo.frameworks.flax_nnx
- ml_switcheroo.frameworks.html_dsl
- ml_switcheroo.frameworks.jax
- ml_switcheroo.frameworks.keras
- ml_switcheroo.frameworks.latex_dsl
- ml_switcheroo.frameworks.loader
- ml_switcheroo.frameworks.mlir
- ml_switcheroo.frameworks.mlx
- ml_switcheroo.frameworks.numpy
- ml_switcheroo.frameworks.optax_shim
- ml_switcheroo.frameworks.paxml
- ml_switcheroo.frameworks.rdna
- ml_switcheroo.frameworks.sass
- ml_switcheroo.frameworks.stablehlo
- ml_switcheroo.frameworks.tensorflow
- ml_switcheroo.frameworks.tikz
- ml_switcheroo.frameworks.torch
ClassesΒΆ
Protocol definition for a Framework Adapter. |
FunctionsΒΆ
|
|
|
|
|
Package ContentsΒΆ
- class ml_switcheroo.frameworks.FrameworkAdapter[source]ΒΆ
Bases:
ProtocolProtocol definition for a Framework Adapter.
- property test_config: Dict[str, str]ΒΆ
- property harness_imports: List[str]ΒΆ
- property search_modules: List[str]ΒΆ
- property display_name: strΒΆ
- property ui_priority: intΒΆ
- property discovery_heuristics: Dict[str, List[str]]ΒΆ
- property supported_tiers: List[ml_switcheroo.enums.SemanticTier]ΒΆ
- property import_alias: Tuple[str, str]ΒΆ
- property inherits_from: str | NoneΒΆ
- property structural_traits: ml_switcheroo.semantics.schema.StructuralTraitsΒΆ
- property plugin_traits: ml_switcheroo.semantics.schema.PluginTraitsΒΆ
- property rng_seed_methods: List[str]ΒΆ
- property declared_magic_args: List[str]ΒΆ
- property unsafe_submodules: Set[str]ΒΆ
- property definitions: Dict[str, StandardMap]ΒΆ
- property specifications: Dict[str, ml_switcheroo.semantics.schema.OperationDef]ΒΆ
- property import_namespaces: Dict[str, Dict[str, str] | ImportConfig]ΒΆ
- collect_api(category: StandardCategory) List[ml_switcheroo.core.ghost.GhostRef][source]ΒΆ
- ml_switcheroo.frameworks.get_adapter(name: str) FrameworkAdapter | None[source]ΒΆ