ONNX Runtime
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Modules Pages
Ort::Node Struct Reference

Wrapper around OrtNode. More...

#include <onnxruntime_cxx_api.h>

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

Public Member Functions

 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::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

- Public Types inherited from Ort::detail::NodeImpl< OrtNode >
using B = Ort::detail::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/4]

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

No instance is created.

◆ Node() [2/4]

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

Take ownership of a pointer created by C API.

◆ Node() [3/4]

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() [4/4]

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.