"""Auto-generated stub for module: device."""
from typing import Any, Optional

# Constants
logger: Any

# Functions
def move_to_device(model: Any, device: Any.Any) -> Any.Any:
    """
    Move a model to the target device.
    
        Args:
            model: Torch model or wrapper object with ``.model`` attribute.
            device: Target device.
    
        Returns:
            The device used for placement.
    """
    ...
def prepare_torch_model_for_inference(model: Any.Any.Any, device: Any.Any | None = None) -> Any.Any.Any:
    """
    Move model to device and set eval mode for inference.
    
        Args:
            model: Torch module to prepare.
            device: Optional explicit target device.
    
        Returns:
            Inference-ready model on the resolved device.
    """
    ...
def resolve_device(preferred: str = 'cuda') -> Any.Any:
    """
    Select the best available compute device.
    
        Args:
            preferred: Requested device key (``cuda``, ``mps``, or ``cpu``).
    
        Returns:
            Resolved ``torch.device`` value.
    """
    ...
def resolve_torch_device() -> Any.Any:
    """
    Resolve the best available torch inference device.
    
        Args:
            None.
    
        Returns:
            ``torch.device("cuda")`` when available, otherwise CPU.
    """
    ...
