weaklearn 0.1.0 Other versions
get_device()
Get PyTorch device
device_str: Device specification (“auto”, “cpu”, “cuda”, “cuda:0”, etc.)
PyTorch device
device_str (str)
torch.device