OnnxRuntime
Ort::ModelMetadata Struct Reference

Wrapper around OrtModelMetadata. More...

#include <onnxruntime_cxx_api.h>

Inherits Ort::Base< OrtModelMetadata >.

Public Member Functions

 ModelMetadata (std::nullptr_t)
 Create an empty ModelMetadata object, must be assigned a valid one to be used. More...
 
 ModelMetadata (OrtModelMetadata *p)
 Used for interop with the C API. More...
 
char * GetProducerName (OrtAllocator *allocator) const
 Wraps OrtApi::ModelMetadataGetProducerName. More...
 
char * GetGraphName (OrtAllocator *allocator) const
 Wraps OrtApi::ModelMetadataGetGraphName. More...
 
char * GetDomain (OrtAllocator *allocator) const
 Wraps OrtApi::ModelMetadataGetDomain. More...
 
char * GetDescription (OrtAllocator *allocator) const
 Wraps OrtApi::ModelMetadataGetDescription. More...
 
char * GetGraphDescription (OrtAllocator *allocator) const
 Wraps OrtApi::ModelMetadataGetGraphDescription. More...
 
char ** GetCustomMetadataMapKeys (OrtAllocator *allocator, int64_t &num_keys) const
 Wraps OrtApi::ModelMetadataGetCustomMetadataMapKeys. More...
 
char * LookupCustomMetadataMap (const char *key, OrtAllocator *allocator) const
 Wraps OrtApi::ModelMetadataLookupCustomMetadataMap. More...
 
int64_t GetVersion () const
 Wraps OrtApi::ModelMetadataGetVersion. More...
 
- Public Member Functions inherited from Ort::Base< OrtModelMetadata >
 Base ()=default
 
 Base (OrtModelMetadata *p)
 
 ~Base ()
 
 operator OrtModelMetadata * ()
 
 operator const OrtModelMetadata * () const
 
OrtModelMetadatarelease ()
 Releases ownership of the contained pointer. More...
 

Additional Inherited Members

- Public Types inherited from Ort::Base< OrtModelMetadata >
using contained_type = OrtModelMetadata
 
- Protected Member Functions inherited from Ort::Base< OrtModelMetadata >
 Base (const Base &)=delete
 
 Base (Base &&v) noexcept
 
Baseoperator= (const Base &)=delete
 
void operator= (Base &&v) noexcept
 
- Protected Attributes inherited from Ort::Base< OrtModelMetadata >
OrtModelMetadatap_
 

Detailed Description

Wrapper around OrtModelMetadata.

Constructor & Destructor Documentation

◆ ModelMetadata() [1/2]

Ort::ModelMetadata::ModelMetadata ( std::nullptr_t  )
inlineexplicit

Create an empty ModelMetadata object, must be assigned a valid one to be used.

◆ ModelMetadata() [2/2]

Ort::ModelMetadata::ModelMetadata ( OrtModelMetadata p)
inlineexplicit

Used for interop with the C API.

Member Function Documentation

◆ GetCustomMetadataMapKeys()

char ** Ort::ModelMetadata::GetCustomMetadataMapKeys ( OrtAllocator allocator,
int64_t &  num_keys 
) const

◆ GetDescription()

char * Ort::ModelMetadata::GetDescription ( OrtAllocator allocator) const

◆ GetDomain()

char * Ort::ModelMetadata::GetDomain ( OrtAllocator allocator) const

◆ GetGraphDescription()

char * Ort::ModelMetadata::GetGraphDescription ( OrtAllocator allocator) const

◆ GetGraphName()

char * Ort::ModelMetadata::GetGraphName ( OrtAllocator allocator) const

◆ GetProducerName()

char * Ort::ModelMetadata::GetProducerName ( OrtAllocator allocator) const

◆ GetVersion()

int64_t Ort::ModelMetadata::GetVersion ( ) const

◆ LookupCustomMetadataMap()

char * Ort::ModelMetadata::LookupCustomMetadataMap ( const char *  key,
OrtAllocator allocator 
) const