Microsoft DirectML review
A free, open-source Windows API for DirectX 12 GPU and NPU machine-learning execution.
Reviewed by iTechGuides Editors · Editorial team · Updated Nov 2026
Microsoft DirectML is a low-level, hardware-accelerated machine-learning API for Windows applications, games, engines, middleware, and custom frameworks. Its DirectX 12-style C++/COM interface executes neural-network operators and graphs on DirectX 12-compatible GPUs and AI acceleration hardware. It suits teams building Windows inference or graphics workloads that need direct control over execution, as well as developers integrating through ONNX Runtime or Windows ML.
The SDK is open source with a free plan and supports self-hosted deployment. Teams can use its native C++ and nano-COM API, a standalone redistributable package, or framework connections including ONNX Runtime, Windows ML, TensorFlow, and PyTorch. The ONNX Runtime DirectML execution provider and Windows ML backend integration make it practical for applications that already use those ecosystems. Python access appears through PyDirectML samples, while the core interface remains native C++/COM.
DirectML includes a hardware-accelerated operator library, layer-by-layer and graph execution workflows, and samples covering super-resolution, object detection, and NPU inference. Microsoft documents the project as being in sustained engineering: security and compliance fixes remain supported, while new feature development has moved to Windows ML. Choose DirectML when a Windows application needs DirectX 12-based execution across compatible hardware; teams seeking ongoing new DirectML features should look to Windows ML instead.
Microsoft DirectML pros and cons
- Where it wins
- DirectX 12 hardware abstraction across AMD, Intel, NVIDIA, and Qualcomm GPUs
- Integrates with ONNX Runtime, Windows ML, TensorFlow, and PyTorch
- Supports both layer-by-layer and graph execution workflows
- Where it doesn't
- Windows-only platform support
- Requires DirectX 12-compatible GPUs or AI acceleration hardware
- New feature development has moved to Windows ML
Microsoft DirectML fact sheet, pricing and score →
Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.
Last updated · How we research and update