ml_switcheroo.frameworks.rdna ============================= .. py:module:: ml_switcheroo.frameworks.rdna .. autoapi-nested-parse:: AMD RDNA / GCN Framework Adapter. Provides metadata and configuration for the RDNA compiler stack. This adapter acts as a metadata container for the Compiler Registry, identifying RDNA as a target language and providing static definitions. Migration Note: Legacy shim classes (`PythonToRdnaEmitter`, `RdnaToPythonParser`) have been removed. Routing now occurs via `compiler.registry`. Classes ------- .. autoapisummary:: ml_switcheroo.frameworks.rdna.RdnaAdapter Module Contents --------------- .. py:class:: RdnaAdapter(target_arch: str = 'gfx1030') Bases: :py:obj:`ml_switcheroo.frameworks.base.FrameworkAdapter` Adapter for AMD RDNA. .. py:attribute:: display_name :type: str :value: 'AMD RDNA' .. py:attribute:: inherits_from :type: Optional[str] :value: None .. py:attribute:: ui_priority :type: int :value: 151 .. py:attribute:: target_arch :value: 'gfx1030' .. py:property:: search_modules :type: List[str] .. py:property:: unsafe_submodules :type: Set[str] .. py:property:: import_alias :type: Tuple[str, str] .. py:property:: import_namespaces :type: Dict[str, ml_switcheroo.frameworks.base.ImportConfig] .. py:property:: discovery_heuristics :type: Dict[str, List[str]] .. py:property:: test_config :type: Dict[str, str] .. py:property:: harness_imports :type: List[str] .. py:method:: get_harness_init_code() -> str .. py:method:: get_to_numpy_code() -> str .. py:property:: supported_tiers :type: List[ml_switcheroo.enums.SemanticTier] .. py:property:: declared_magic_args :type: List[str] .. py:property:: structural_traits :type: ml_switcheroo.semantics.schema.StructuralTraits .. py:property:: plugin_traits :type: ml_switcheroo.semantics.schema.PluginTraits .. py:property:: definitions :type: Dict[str, ml_switcheroo.frameworks.base.StandardMap] .. py:property:: specifications :type: Dict[str, ml_switcheroo.frameworks.base.OperationDef] .. py:property:: rng_seed_methods :type: List[str] .. py:method:: collect_api(category: ml_switcheroo.frameworks.base.StandardCategory) -> List[ml_switcheroo.core.ghost.GhostRef] .. py:method:: get_device_syntax(device_type: str, device_index: Optional[str] = None) -> str .. py:method:: get_device_check_syntax() -> str .. py:method:: get_rng_split_syntax(rng_var: str, key_var: str) -> str .. 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_weight_conversion_imports() -> List[str] .. py:method:: get_weight_load_code(path_var: str) -> str .. py:method:: get_tensor_to_numpy_expr(tensor_var: str) -> str .. py:method:: get_weight_save_code(state_var: str, path_var: str) -> str .. py:method:: apply_wiring(snapshot: Dict[str, Any]) -> None .. py:method:: get_doc_url(api_name: str) -> Optional[str] .. py:method:: convert(data: Any) -> Any .. py:method:: get_tiered_examples() -> Dict[str, str]