Wrapper around ::OrtModelMetadata.
More...
#include <onnxruntime_cxx_api.h>
Wrapper around ::OrtModelMetadata.
Definition at line 965 of file onnxruntime_cxx_api.h.
Ort::ModelMetadata::ModelMetadata |
( |
std::nullptr_t |
| ) |
|
|
inlineexplicit |
Ort::ModelMetadata::ModelMetadata |
( |
OrtModelMetadata * |
p | ) |
|
|
inlineexplicit |
std::vector< AllocatedStringPtr > Ort::ModelMetadata::GetCustomMetadataMapKeysAllocated |
( |
OrtAllocator * |
allocator | ) |
const |
|
inline |
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 1183 of file onnxruntime_cxx_inline.h.
AllocatedStringPtr Ort::ModelMetadata::GetDescriptionAllocated |
( |
OrtAllocator * |
allocator | ) |
const |
|
inline |
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 1165 of file onnxruntime_cxx_inline.h.
AllocatedStringPtr Ort::ModelMetadata::GetDomainAllocated |
( |
OrtAllocator * |
allocator | ) |
const |
|
inline |
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 1159 of file onnxruntime_cxx_inline.h.
AllocatedStringPtr Ort::ModelMetadata::GetGraphDescriptionAllocated |
( |
OrtAllocator * |
allocator | ) |
const |
|
inline |
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 1171 of file onnxruntime_cxx_inline.h.
AllocatedStringPtr Ort::ModelMetadata::GetGraphNameAllocated |
( |
OrtAllocator * |
allocator | ) |
const |
|
inline |
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 1153 of file onnxruntime_cxx_inline.h.
int64_t Ort::ModelMetadata::GetVersion |
( |
| ) |
const |
|
inline |
AllocatedStringPtr Ort::ModelMetadata::LookupCustomMetadataMapAllocated |
( |
const char * |
key, |
|
|
OrtAllocator * |
allocator |
|
) |
| 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 1177 of file onnxruntime_cxx_inline.h.
The documentation for this struct was generated from the following files: