OrtApi.CreateTensorAsOrtValue

Create a tensor from an allocator. OrtReleaseValue will also release the buffer inside the output value \param out Should be freed by calling OrtReleaseValue \param type must be one of TENSOR_ELEMENT_DATA_TYPE_xxxx

struct OrtApi
OrtStatus* function(OrtAllocator* allocator, const(long)* shape, size_t shape_len, ONNXTensorElementDataType type, OrtValue** out_) CreateTensorAsOrtValue;

Meta