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

Wrapper around OrtNode. More...

#include <onnxruntime_cxx_api.h>

Inheritance diagram for Ort::Node:
Ort::detail::ConstNodeImpl< OrtNode > Ort::detail::Base< T >

Public Member Functions

 Node ()=default
 
 Node (std::nullptr_t)
 No instance is created.
 
 Node (OrtNode *p)
 Take ownership of a pointer created by C API.
 
 Node (const std::string &operator_name, const std::string &operator_domain, const std::string &node_name, const std::vector< std::string > &input_names, const std::vector< std::string > &output_names)
 
 Node (const std::string &operator_name, const std::string &operator_domain, const std::string &node_name, const std::vector< std::string > &input_names, const std::vector< std::string > &output_names, std::vector< OpAttr > &attributes)
 Wraps CreateNode. Node takes ownership of attributes on success and updates the OpAttr in attributes to do so.
 
- Public Member Functions inherited from Ort::detail::ConstNodeImpl< OrtNode >
size_t GetId () const
 
std::string GetName () const
 
std::string GetOperatorType () const
 
std::string GetDomain () const
 
int GetSinceVersion () const
 
std::vector< ConstValueInfoGetInputs () const
 
std::vector< ConstValueInfoGetOutputs () const
 
std::vector< ConstValueInfoGetImplicitInputs () const
 
std::vector< ConstOpAttrGetAttributes () const
 
Status GetAttributeByName (const std::string &name, ConstOpAttr &attr) const
 
std::vector< AttrNameSubgraphGetSubgraphs () const
 
ConstGraphImpl< detail::Unowned< const OrtGraph > > GetGraph () const
 
std::string GetEpName () const
 
- 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::ConstNodeImpl< OrtNode >
using B = Base< OrtNode >
 
- 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 OrtNode.

Constructor & Destructor Documentation

◆ Node() [1/5]

Ort::Node::Node ( )
default

◆ Node() [2/5]

Ort::Node::Node ( std::nullptr_t  )
inlineexplicit

No instance is created.

◆ Node() [3/5]

Ort::Node::Node ( OrtNode p)
inlineexplicit

Take ownership of a pointer created by C API.

◆ Node() [4/5]

Ort::Node::Node ( const std::string &  operator_name,
const std::string &  operator_domain,
const std::string &  node_name,
const std::vector< std::string > &  input_names,
const std::vector< std::string > &  output_names 
)

◆ Node() [5/5]

Ort::Node::Node ( const std::string &  operator_name,
const std::string &  operator_domain,
const std::string &  node_name,
const std::vector< std::string > &  input_names,
const std::vector< std::string > &  output_names,
std::vector< OpAttr > &  attributes 
)

Wraps CreateNode. Node takes ownership of attributes on success and updates the OpAttr in attributes to do so.