IMLOperatorKernelContext.GetExecutionInterface method

Returns an object whose supported interfaces vary based on the kernel type. For kernels registered with MLOperatorExecutionType::Cpu, executionObject will be set to nullptr. For kernels registered with MLOperatorExecutionType::D3D12, executionObject will support the ID3D12GraphicsCommandList interface. This may be a different object than was provided to IMLOperatorKernelCreationContext::GetExecutionInterface when the kernel instance was created.

void GetExecutionInterface(
    _COM_Outptr_result_maybenull_ IUnknown** executionObject)

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.