| title | DirectML constants | |
|---|---|---|
| description | The following constants are declared in `DirectML.h`. | |
| keywords |
|
|
| topic_type |
|
|
| api_name |
|
|
| api_location |
|
|
| api_type |
|
|
| ms.topic | reference | |
| ms.date | 02/10/2025 |
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. |
| Requirement | Value |
|---|---|
| Header | DirectML.h |