IMLOperatorKernelContext.AllocateTemporaryData method

Allocates temporary data which will be usable as intermediate memory for the duration of a call to IMLOperatorKernel::Compute. This may be used by kernels registered using MLOperatorExecutionType::D3D12. The data object supports the ID3D12Resource interface, and is a GPU buffer.

void AllocateTemporaryData(
    size_t size,
    _COM_Outptr_ IUnknown** data)

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.