ml_switcheroo.frameworks.keras¶

Keras (v3) Framework Adapter.

This module provides the adapter for Keras 3+, enabling translation between Keras and other frameworks (JAX, Torch, TensorFlow).

Refactor: Definitions populated for Keras specific Layers, Ops, and Vision.

Attributes¶

keras

Classes¶

KerasAdapter

Adapter for Keras 3+ (Multi-backend).

Module Contents¶

ml_switcheroo.frameworks.keras.keras = None¶
class ml_switcheroo.frameworks.keras.KerasAdapter¶

Adapter for Keras 3+ (Multi-backend).

display_name: str = 'Keras'¶
inherits_from: str | None = None¶
ui_priority: int = 25¶
classmethod get_example_code() → str¶
get_tiered_examples() → Dict[str, str]¶
property search_modules: List[str]¶
property import_alias: Tuple[str, str]¶
property import_namespaces: Dict[str, Dict[str, str]]¶
property discovery_heuristics: Dict[str, List[str]]¶
property test_config: Dict[str, str]¶
property supported_tiers: List[ml_switcheroo.enums.SemanticTier]¶
property structural_traits: ml_switcheroo.frameworks.base.StructuralTraits¶
property definitions: Dict[str, ml_switcheroo.frameworks.base.StandardMap]¶

Static definitions for Keras mappings.

property rng_seed_methods: List[str]¶
collect_api(category: ml_switcheroo.frameworks.base.StandardCategory) → List[ml_switcheroo.frameworks.base.GhostRef]¶
convert(data: Any) → Any¶
get_serialization_imports() → List[str]¶
get_serialization_syntax(op: str, file_arg: str, object_arg: str | None = None) → str¶
get_device_syntax(device_type: str, device_index: str | None = None) → str¶
apply_wiring(snapshot: Dict[str, Any]) → None¶