Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 1.33 KB

File metadata and controls

42 lines (34 loc) · 1.33 KB
title DirectML constants
description The following constants are declared in `DirectML.h`.
keywords
Constants
topic_type
apiref
api_name
DirectML constants
api_location
DirectML.h
api_type
HeaderDef
ms.topic reference
ms.date 02/10/2025

DirectML constants

The following constants are declared in DirectML.h.

Constant Value Description
DML_TENSOR_DIMENSION_COUNT_MAX 5 DirectML tensors support a maximum of 5 dimensions for DML_TARGET_VERSION < DML_FEATURE_LEVEL_3_0.
DML_TENSOR_DIMENSION_COUNT_MAX1 8 DirectML tensors support a maximum of 8 dimensions for DML_TARGET_VERSION >= DML_FEATURE_LEVEL_3_0.
DML_TEMPORARY_BUFFER_ALIGNMENT 256 Temporary and persistent buffers must have a base address that is aligned to 256 bytes.
DML_PERSISTENT_BUFFER_ALIGNMENT 256 Temporary and persistent buffers must have a base address that is aligned to 256 bytes.
DML_MINIMUM_BUFFER_TENSOR_ALIGNMENT 16 Buffer tensors have a minimum base address alignment requirement of 16 bytes.

Requirements

Requirement Value
Header DirectML.h

See also