IMLOperatorTensor interface

Representation of a tensor used during computation of custom operator kernels.

Methods

Name Description
GetData Returns a pointer to byte-addressable memory for the tensor.
GetDataInterface Gets an interface pointer for the tensor.
GetDimensionCount Gets the number of dimensions in the tensor.
GetShape Gets the size of dimensions in the tensor.
GetTensorDataType Gets the data type of the tensor.
IsCpuData Indicates whether the memory used by the tensor is CPU-addressable.
IsDataInterface Whether the contents of the tensor are represented by an interface type, or byte-addressable memory.

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.