ml_switcheroo.frameworks.numpy ============================== .. py:module:: ml_switcheroo.frameworks.numpy .. autoapi-nested-parse:: Numpy Framework Adapter. Refactor: Definitions populated for NumPy specific Ops. Classes ------- .. autoapisummary:: ml_switcheroo.frameworks.numpy.NumpyAdapter Module Contents --------------- .. py:class:: NumpyAdapter Adapter for generic NumPy. .. py:attribute:: display_name :type: str :value: 'NumPy' .. py:attribute:: inherits_from :type: Optional[str] :value: None .. py:attribute:: ui_priority :type: int :value: 20 .. 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] Test templates for NumPy. .. 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] .. 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_example_code() -> str :classmethod: Returns the primary example code used for instant demos. .. py:method:: get_tiered_examples() -> Dict[str, str] Returns NumPy idiomatic examples. .. py:method:: get_device_syntax(device_type: str, device_index: Optional[str] = None) -> 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:: apply_wiring(snapshot: Dict[str, Any]) -> None .. py:method:: convert(data)