Wrapper around ::OrtModelMetadata.
More...
#include <onnxruntime_cxx_api.h>
Wrapper around ::OrtModelMetadata.
Definition at line 616 of file onnxruntime_cxx_api.h.
Ort::ModelMetadata::ModelMetadata |
( |
std::nullptr_t |
| ) |
|
|
inlineexplicit |
Ort::ModelMetadata::ModelMetadata |
( |
OrtModelMetadata * |
p | ) |
|
|
inlineexplicit |
Returns a vector of copies of the custom metadata keys.
- Parameters
-
allocator | to allocate memory for the copy of the string returned |
- Returns
- a instance std::vector of smart pointers that would deallocate the buffers when out of scope. The OrtAllocator instance must be valid at the point of memory release.Wraps OrtApi::ModelMetadataGetCustomMetadataMapKeys
Definition at line 992 of file onnxruntime_cxx_inline.h.
Returns a copy of the description.
- Parameters
-
allocator | to allocate memory for the copy of the string returned |
- Returns
- a instance of smart pointer that would deallocate the buffer when out of scope. The OrtAllocator instances must be valid at the point of memory release.Wraps OrtApi::ModelMetadataGetDescription
Definition at line 974 of file onnxruntime_cxx_inline.h.
Returns a copy of the domain name.
- Parameters
-
allocator | to allocate memory for the copy of the name returned |
- Returns
- a instance of smart pointer that would deallocate the buffer when out of scope. The OrtAllocator instances must be valid at the point of memory release.Wraps OrtApi::ModelMetadataGetDomain
Definition at line 968 of file onnxruntime_cxx_inline.h.
Returns a copy of the graph description.
- Parameters
-
allocator | to allocate memory for the copy of the string returned |
- Returns
- a instance of smart pointer that would deallocate the buffer when out of scope. The OrtAllocator instances must be valid at the point of memory release.Wraps OrtApi::ModelMetadataGetGraphDescription
Definition at line 980 of file onnxruntime_cxx_inline.h.
Used for interop with the C API.
Wraps OrtApi::ModelMetadataGetProducerName Returns a copy of the graph name.
- Parameters
-
allocator | to allocate memory for the copy of the name returned |
- Returns
- a instance of smart pointer that would deallocate the buffer when out of scope. The OrtAllocator instances must be valid at the point of memory release.Wraps OrtApi::ModelMetadataGetGraphName
Definition at line 962 of file onnxruntime_cxx_inline.h.
int64_t Ort::ModelMetadata::GetVersion |
( |
| ) |
const |
|
inline |
Looks up a value by a key in the Custom Metadata map.
- Parameters
-
key | zero terminated string key to lookup |
allocator | to allocate memory for the copy of the string returned |
- Returns
- a instance of smart pointer that would deallocate the buffer when out of scope. maybe nullptr if key is not found.
The OrtAllocator instances must be valid at the point of memory release.Wraps OrtApi::ModelMetadataLookupCustomMetadataMap
Definition at line 986 of file onnxruntime_cxx_inline.h.
The documentation for this struct was generated from the following files: