Getting Started
Basic Tutorials
Drug Discovery
Computational Chemistry
Integration Workflows
Additional Examples
Reference
get_device()
Get the appropriate torch device.
gpu_idx – GPU index to use. None for automatic selection.
use_gpu – Whether to use GPU if available.
torch.device for the selected device.