ml_switcheroo.frameworks.keras ============================== .. py:module:: ml_switcheroo.frameworks.keras .. autoapi-nested-parse:: 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 ---------- .. autoapisummary:: ml_switcheroo.frameworks.keras.keras Classes ------- .. autoapisummary:: ml_switcheroo.frameworks.keras.KerasAdapter Module Contents --------------- .. py:data:: keras :value: None .. py:class:: KerasAdapter Adapter for Keras 3+ (Multi-backend). .. py:attribute:: display_name :type: str :value: 'Keras' .. py:attribute:: inherits_from :type: Optional[str] :value: None .. py:attribute:: ui_priority :type: int :value: 25 .. py:method:: get_example_code() -> str :classmethod: .. py:method:: get_tiered_examples() -> Dict[str, str] .. py:property:: search_modules :type: List[str] .. py:property:: import_alias :type: Tuple[str, str] .. py:property:: import_namespaces :type: Dict[str, Dict[str, str]] .. py:property:: discovery_heuristics :type: Dict[str, List[str]] .. py:property:: test_config :type: Dict[str, str] .. py:property:: supported_tiers :type: List[ml_switcheroo.enums.SemanticTier] .. py:property:: structural_traits :type: ml_switcheroo.frameworks.base.StructuralTraits .. py:property:: definitions :type: Dict[str, ml_switcheroo.frameworks.base.StandardMap] Static definitions for Keras mappings. .. py:property:: rng_seed_methods :type: List[str] .. py:method:: collect_api(category: ml_switcheroo.frameworks.base.StandardCategory) -> List[ml_switcheroo.frameworks.base.GhostRef] .. py:method:: convert(data: Any) -> Any .. py:method:: get_serialization_imports() -> List[str] .. py:method:: get_serialization_syntax(op: str, file_arg: str, object_arg: Optional[str] = None) -> str .. py:method:: get_device_syntax(device_type: str, device_index: Optional[str] = None) -> str .. py:method:: apply_wiring(snapshot: Dict[str, Any]) -> None