ONNX Runtime
Loading...
Searching...
No Matches
Ort::Model Struct Reference

Wrapper around OrtModel. More...

#include <onnxruntime_cxx_api.h>

Inheritance diagram for Ort::Model:
Ort::detail::ModelImpl< OrtModel > Ort::detail::Base< T >

Public Types

using DomainOpsetPair = std::pair< std::string, int >
 
- Public Types inherited from Ort::detail::ModelImpl< OrtModel >
using B = Ort::detail::Base< OrtModel >
 
- Public Types inherited from Ort::detail::Base< T >
using contained_type = T
 

Public Member Functions

 Model (std::nullptr_t)
 No instance is created.
 
 Model (OrtModel *p)
 Take ownership of a pointer created by C API.
 
 Model (const std::vector< DomainOpsetPair > &opsets)
 
ConstModel GetConst () const
 
- Public Member Functions inherited from Ort::detail::ModelImpl< OrtModel >
void AddGraph (Graph &graph)
 
- Public Member Functions inherited from Ort::detail::Base< T >
constexpr Base ()=default
 
constexpr Base (contained_type *p) noexcept
 
 ~Base ()
 
 Base (const Base &)=delete
 
Baseoperator= (const Base &)=delete
 
 Base (Base &&v) noexcept
 
Baseoperator= (Base &&v) noexcept
 
constexpr operator contained_type * () const noexcept
 
contained_typerelease ()
 Relinquishes ownership of the contained C object pointer The underlying object is not destroyed.
 

Additional Inherited Members

- Protected Attributes inherited from Ort::detail::Base< T >
contained_typep_ {}
 

Detailed Description

Wrapper around OrtModel.

Member Typedef Documentation

◆ DomainOpsetPair

using Ort::Model::DomainOpsetPair = std::pair<std::string, int>

Constructor & Destructor Documentation

◆ Model() [1/3]

Ort::Model::Model ( std::nullptr_t  )
inlineexplicit

No instance is created.

◆ Model() [2/3]

Ort::Model::Model ( OrtModel p)
inlineexplicit

Take ownership of a pointer created by C API.

◆ Model() [3/3]

Ort::Model::Model ( const std::vector< DomainOpsetPair > &  opsets)
explicit

Member Function Documentation

◆ GetConst()

ConstModel Ort::Model::GetConst ( ) const
inline