DirectML API Documentation

Accelerate Machine Learning on Windows

DirectML API Reference

Explore the comprehensive set of APIs available for DirectML, enabling you to build high-performance machine learning models and applications on Windows.

Operators

DirectML provides a rich set of operators for common deep learning tasks. Below is a list of key operators, with more details available in the full API documentation.

Enumerations

Key enumerations used throughout the DirectML API.

  • DML_STATUS

    Defines the possible return values for DirectML functions, indicating success or failure.

  • DML_TENSOR_DATA_TYPE

    Specifies the data types supported for tensors, such as FLOAT32, FLOAT16, and UINT8.

Structures

Core data structures used for defining tensors, operators, and device configurations.

  • DML_TENSOR_DESC

    Describes a DirectML tensor, including its dimensions, data type, and format.

  • DML_OPERATOR_DESC

    A generic structure to describe various types of DirectML operators.

  • DML_BINDING_DESC

    Describes the bindings between operator inputs, outputs, and persistent resources.

Interfaces

Key DirectML interfaces for managing devices, operators, and execution.

  • IDMLDevice

    Represents a DirectML device, used for creating operators and managing resources.

  • IDMLOperator

    Represents a compiled DirectML operator ready for execution.

  • IDMLCommandRecorder

    Records DirectML commands for later execution on a command queue.