IMLOperatorShapeInferenceContext interface

Provides information about an operator's usage while shape inferrers are being invoked.

Methods

Name Description
GetInputCount Gets the number of inputs to the operator.
GetInputEdgeDescription Gets the description of the specified input edge of the operator.
GetInputTensorDimensionCount Gets the number of dimensions of a tensor output of the operator.
GetInputTensorShape Gets the sizes of dimensions of an input tensor of the operator.
GetOutputCount Gets the number of outputs to the operator.
IsInputValid Returns true if an input to the operator is valid.
IsOutputValid Returns true if an output to the operator is valid.
SetOutputTensorShape Sets the inferred shape of an output tensor.

Requirements

Requirement
Minimum supported client Windows 10, build 17763
Minimum supported server Windows Server 2019 with Desktop Experience
Header MLOperatorAuthor.h

Note

Use the following resources for help with Windows ML:

  • To ask or answer technical questions about Windows ML, please use the windows-machine-learning tag on Stack Overflow.
  • To report a bug, please file an issue on our GitHub.