IMLOperatorKernelCreationContext interface

Provides information about an operator's usage while kernels are being created.

Methods

Name Description
GetExecutionInterface Returns an object whose supported interfaces vary based on the kernel type.
GetInputCount Gets the number of inputs to the operator.
GetInputEdgeDescription Gets the description of the specified input edge of the operator.
GetOutputCount Gets the number of outputs to the operator.
GetOutputEdgeDescription Gets the description of the specified output edge of the operator.
GetTensorShapeDescription Gets the description of input and output shapes connected to operator edges.
HasTensorShapeDescription Returns true if the description of input and output shapes connected to operator edges may be queried using GetTensorShapeDescription.
IsInputValid Returns true if an input to the operator is valid. This always returns true except for optional inputs.
IsOutputValid Returns true if an output to the operator is valid. This always returns true except for optional outputs.

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.