Skip to content

_get_device

Source code in src/safeds/config/_device.py
def _get_device() -> Device:
    return torch.device("cuda") if torch.cuda.is_available() else torch.device("cpu")