DML_DEPTH_SPACE_ORDER enumeration (directml.h)

Defines constants controlling the transform applied in the DirectML operators DML_OPERATOR_DEPTH_TO_SPACE1 and DML_OPERATOR_SPACE_TO_DEPTH1. These are used within the DML_DEPTH_TO_SPACE1_OPERATOR_DESC and DML_SPACE_TO_DEPTH1_OPERATOR_DESC structures.

Syntax

typedef enum DML_DEPTH_SPACE_ORDER {
  DML_DEPTH_SPACE_ORDER_DEPTH_COLUMN_ROW,
  DML_DEPTH_SPACE_ORDER_COLUMN_ROW_DEPTH
} ;

Constants

 
DML_DEPTH_SPACE_ORDER_DEPTH_COLUMN_ROW
Causes tensors used in DML_DEPTH_TO_SPACE1_OPERATOR_DESC and DML_SPACE_TO_DEPTH1_OPERATOR_DESC to be interpreted with the following layouts, where dimensions in parenthesis are flattened together.

- Depth version: [Batch, (BlockHeight, BlockWidth, Channels), Height, Width]
- Space version: [Batch, Channels, (Height, BlockHeight), (Width, BlockWidth)]
DML_DEPTH_SPACE_ORDER_COLUMN_ROW_DEPTH
Causes tensors used in DML_DEPTH_TO_SPACE1_OPERATOR_DESC and DML_SPACE_TO_DEPTH1_OPERATOR_DESC to be interpreted with the following layouts, where dimensions in parenthesis are flattened together.

- Depth version: [Batch, (Channels, BlockHeight, BlockWidth), Height, Width]
- Space version: [Batch, Channels, (Height, BlockHeight), (Width, BlockWidth)]

Remarks

See DML_DEPTH_TO_SPACE1_OPERATOR_DESC and DML_SPACE_TO_DEPTH1_OPERATOR_DESC documentation for examples showing the effect of these values.

Requirements

Requirement Value
Minimum supported client Windows 10 Build 20348
Minimum supported server Windows 10 Build 20348
Header directml.h

See also

Availability

This enumeration was introduced in DML_FEATURE_LEVEL_2_1.