Provides a DirectML backend for hardware acceleration in PyTorch, enabling GPU acceleration on Windows devices with DirectX 12 compatible GPUs (including AMD, Intel, and NVIDIA). Current version is 0.2.5.dev240914, with preview releases following a monthly cadence.
pip install torch-directmlVerified import paths — ran on the pinned version, not inferred.
Basic setup: import torch_directml, get the default DirectML device, move a tensor to it.
Use `torch_directml.device()` or `torch_directml.device(torch_directml.device_count() - 1)` for specific devices.
Use `import torch_directml` instead of `import dml`.
Run on Windows 10/11 with DirectX 12 capable GPU.