DML_CONVOLUTION_MODE enumeration (directml.h)

Defines constants that specify a mode for the DirectML convolution operator (as described by the DML_CONVOLUTION_OPERATOR_DESC structure).

Syntax

typedef enum DML_CONVOLUTION_MODE {
  DML_CONVOLUTION_MODE_CONVOLUTION,
  DML_CONVOLUTION_MODE_CROSS_CORRELATION
} ;

Constants

 
DML_CONVOLUTION_MODE_CONVOLUTION
Specifies the convolution mode. When used along with DML_CONVOLUTION_DIRECTION_FORWARD, this flips the filter along the height and width axes.
DML_CONVOLUTION_MODE_CROSS_CORRELATION
Specifies the cross-correlation mode. If in doubt, use this modeā€”it is appropriate for the vast majority of machine learning (ML) model inference. When used along with DML_CONVOLUTION_DIRECTION_BACKWARD, this flips the filter along the height and width axes.

Requirements

Requirement Value
Header directml.h

See also

DML_CONVOLUTION_OPERATOR_DESC