IMLOperatorKernelContext interface

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

Methods

Name Description
AllocateTemporaryData Allocates temporary data which will be usable as intermediate memory for the duration of a call to IMLOperatorKernel::Compute.
GetExecutionInterface Returns an object whose supported interfaces vary based on the kernel type.
GetInputTensor Gets the input tensor of the operator at the specified index.
GetOutputTensor(uint32_t, IMLOperatorTensor**) Gets the output tensor of the operator at the specified index.
GetOutputTensor(uint32_t, uint32_t, const uint32_t*, IMLOperatorTensor**) Gets the output tensor of the operator at the specified index, while declaring its shape.

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.