mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-02 03:55:34 +00:00
Fix an SAL annotation in the C API
This commit is contained in:
parent
fc7185f060
commit
b02c1d80d4
2 changed files with 2 additions and 2 deletions
|
|
@ -284,7 +284,7 @@ ORT_API_STATUS(OrtCreateTensorAsOrtValue, _Inout_ OrtAllocator* allocator,
|
|||
* \param out Should be freed by calling OrtReleaseValue
|
||||
*/
|
||||
ORT_API_STATUS(OrtCreateTensorWithDataAsOrtValue, _In_ const OrtAllocatorInfo* info,
|
||||
_In_ void* p_data, size_t p_data_len, _In_ const size_t* shape, size_t shape_len,
|
||||
_Inout_ void* p_data, size_t p_data_len, _In_ const size_t* shape, size_t shape_len,
|
||||
ONNXTensorElementDataType type, _Out_ OrtValue** out);
|
||||
|
||||
// This function doesn't work with string tensor
|
||||
|
|
|
|||
|
|
@ -222,7 +222,7 @@ OrtStatus* CreateTensorImpl(const size_t* shape, size_t shape_len, const OrtAllo
|
|||
* this function will create a copy of the allocator info
|
||||
*/
|
||||
ORT_API_STATUS_IMPL(OrtCreateTensorWithDataAsOrtValue, _In_ const OrtAllocatorInfo* info,
|
||||
_In_ void* p_data, size_t p_data_len, _In_ const size_t* shape, size_t shape_len,
|
||||
_Inout_ void* p_data, size_t p_data_len, _In_ const size_t* shape, size_t shape_len,
|
||||
ONNXTensorElementDataType type, _Out_ OrtValue** out) {
|
||||
API_IMPL_BEGIN
|
||||
std::unique_ptr<Tensor> tensor;
|
||||
|
|
|
|||
Loading…
Reference in a new issue