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

Wrapper around OrtGraph. More...

#include <onnxruntime_cxx_api.h>

Inheritance diagram for Ort::Graph:
Ort::detail::GraphImpl< OrtGraph > Ort::detail::ConstGraphImpl< T > Ort::detail::Base< T >

Public Member Functions

 Graph (std::nullptr_t)
 No instance is created.
 
 Graph (OrtGraph *p)
 Take ownership of a pointer created by C API.
 
 Graph ()
 
- Public Member Functions inherited from Ort::detail::GraphImpl< OrtGraph >
void SetInputs (std::vector< ValueInfo > &inputs)
 
void SetOutputs (std::vector< ValueInfo > &outputs)
 
void AddInitializer (const std::string &name, Value &initializer, bool data_is_external)
 
void AddNode (Node &node)
 
- Public Member Functions inherited from Ort::detail::ConstGraphImpl< T >
std::string GetName () const
 
std::basic_string< char > GetModelPath () const
 
int64_t GetOnnxIRVersion () const
 
std::vector< OperatorSetGetOperatorSets () const
 
std::vector< ConstValueInfoGetInputs () const
 
std::vector< ConstValueInfoGetOutputs () const
 
std::vector< ConstValueInfoGetInitializers () const
 
std::vector< ConstNodeGetNodes () const
 
ConstNode GetParentNode () const
 
Graph GetGraphView (const std::vector< ConstNode > &nodes) const
 
ModelMetadata GetModelMetadata () const
 Wraps OrtApi::Graph_GetModelMetadata.
 
- 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
 
constexpr contained_typeoperator* () const noexcept
 
contained_typerelease ()
 Relinquishes ownership of the contained C object pointer The underlying object is not destroyed.
 

Additional Inherited Members

- Public Types inherited from Ort::detail::GraphImpl< OrtGraph >
using B = ConstGraphImpl< OrtGraph >
 
using B = Base< OrtGraph >
 
- Public Types inherited from Ort::detail::ConstGraphImpl< T >
using B = Base< T >
 
- Public Types inherited from Ort::detail::Base< T >
using contained_type = T
 
- Protected Attributes inherited from Ort::detail::Base< T >
contained_typep_ {}
 

Detailed Description

Wrapper around OrtGraph.

Constructor & Destructor Documentation

◆ Graph() [1/3]

Ort::Graph::Graph ( std::nullptr_t  )
inlineexplicit

No instance is created.

◆ Graph() [2/3]

Ort::Graph::Graph ( OrtGraph p)
inlineexplicit

Take ownership of a pointer created by C API.

◆ Graph() [3/3]

Ort::Graph::Graph ( )