DirectML Samples

Explore and accelerate your AI and machine learning workloads on Windows.

Unlock AI Potential with DirectML

Dive into a curated collection of samples showcasing the power and flexibility of DirectML for hardware-accelerated machine learning on Windows. From inference to training, discover how to leverage your GPU for cutting-edge AI applications.

Featured Samples

Image Classification

A comprehensive sample demonstrating how to perform image classification using pre-trained models with DirectML.

View Sample

Object Detection

Explore real-time object detection capabilities, showcasing the performance benefits of DirectML for computer vision tasks.

View Sample

Natural Language Processing

Implement advanced NLP models, such as text generation and sentiment analysis, powered by DirectML acceleration.

View Sample

Custom Layer Implementation

Learn how to define and integrate custom layers into your machine learning pipelines for specialized operations.

View Sample

Performance Benchmarking

Measure and analyze the performance of your DirectML models across different hardware configurations.

View Sample

Model Conversion Guide

Step-by-step guide on converting popular machine learning models (e.g., ONNX) for use with DirectML.

View Sample