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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for