nanoml.device module¶
- nanoml.device.get_device() device [source]¶
Get the device for the current system.
- Returns:
torch.device: The device (torch.device(“cuda”), torch.device(“mps”), torch.device(“cpu”))
Get the device for the current system.
torch.device: The device (torch.device(“cuda”), torch.device(“mps”), torch.device(“cpu”))