![]() |
ONNX Runtime
|
Context used to inspect a model package and select one of its components. More...
#include <onnxruntime_cxx_api.h>
Public Types | |
| using | Base = detail::Base< OrtModelPackageContext > |
Public Types inherited from Ort::detail::Base< OrtModelPackageContext > | |
| using | contained_type = OrtModelPackageContext |
Public Member Functions | |
| ModelPackageContext (std::nullptr_t) | |
| ModelPackageContext (const char *package_root) | |
| int64_t | GetSchemaVersion () const |
| size_t | GetComponentCount () const |
| std::vector< std::string > | GetComponentNames () const |
| size_t | GetVariantCount (const char *component_name) const |
| std::vector< std::string > | GetVariantNames (const char *component_name) const |
| const char * | GetVariantEpName (const char *component_name, const char *variant_name) const |
| std::string | ResolveStringRef (const char *base_dir, const char *input, bool must_exist) const |
| ModelPackageComponentContext | SelectComponent (const char *component_name, const ModelPackageOptions &options) const |
Public Member Functions inherited from Ort::detail::Base< OrtModelPackageContext > | |
| constexpr | Base ()=default |
| constexpr | Base (contained_type *p) noexcept |
| Base (const Base &)=delete | |
| Base (Base &&v) noexcept | |
| ~Base () | |
| Base & | operator= (const Base &)=delete |
| Base & | operator= (Base &&v) noexcept |
| constexpr | operator contained_type * () const noexcept |
| constexpr contained_type & | operator* () const noexcept |
| contained_type * | release () |
| Relinquishes ownership of the contained C object pointer The underlying object is not destroyed. | |
Additional Inherited Members | |
Protected Attributes inherited from Ort::detail::Base< OrtModelPackageContext > | |
| contained_type * | p_ |
Context used to inspect a model package and select one of its components.
|
inlineexplicit |
|
explicit |
| size_t Ort::ModelPackageContext::GetComponentCount | ( | ) | const |
| std::vector< std::string > Ort::ModelPackageContext::GetComponentNames | ( | ) | const |
| int64_t Ort::ModelPackageContext::GetSchemaVersion | ( | ) | const |
| size_t Ort::ModelPackageContext::GetVariantCount | ( | const char * | component_name | ) | const |
| const char * Ort::ModelPackageContext::GetVariantEpName | ( | const char * | component_name, |
| const char * | variant_name | ||
| ) | const |
| std::vector< std::string > Ort::ModelPackageContext::GetVariantNames | ( | const char * | component_name | ) | const |
| std::string Ort::ModelPackageContext::ResolveStringRef | ( | const char * | base_dir, |
| const char * | input, | ||
| bool | must_exist | ||
| ) | const |
| ModelPackageComponentContext Ort::ModelPackageContext::SelectComponent | ( | const char * | component_name, |
| const ModelPackageOptions & | options | ||
| ) | const |