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
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기