OrtApi.CreateTensorWithDataAsOrtValue

Create a tensor with user's buffer. You can fill the buffer either before calling this function or after. p_data is owned by caller. OrtReleaseValue won't release p_data. \param out Should be freed by calling OrtReleaseValue

struct OrtApi
OrtStatus* function(const(OrtMemoryInfo)* info, void* p_data, size_t p_data_len, const(long)* shape, size_t shape_len, ONNXTensorElementDataType type, OrtValue** out_) CreateTensorWithDataAsOrtValue;

Meta