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

This struct provides life time management for custom op attribute. More...

#include <onnxruntime_cxx_api.h>

Inheritance diagram for Ort::OpAttr:
Ort::detail::ConstOpAttrImpl< OrtOpAttr > Ort::detail::Base< T >

Public Types

using Base = detail::ConstOpAttrImpl< OrtOpAttr >
 
- Public Types inherited from Ort::detail::ConstOpAttrImpl< OrtOpAttr >
using B = detail::Base< OrtOpAttr >
 
- Public Types inherited from Ort::detail::Base< T >
using contained_type = T
 

Public Member Functions

 OpAttr ()=default
 
 OpAttr (std::nullptr_t)
 
 OpAttr (const char *name, const void *data, int len, OrtOpAttrType type)
 
ConstOpAttr GetConst () const
 
- Public Member Functions inherited from Ort::detail::ConstOpAttrImpl< OrtOpAttr >
std::string GetName () const
 
OrtOpAttrType GetType () const
 
Status GetValue (R &out) const
 
Status GetValueArray (std::vector< R > &out) const
 
Status GetTensorAttributeAsOrtValue (Value &) 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

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

Detailed Description

This struct provides life time management for custom op attribute.

Member Typedef Documentation

◆ Base

Constructor & Destructor Documentation

◆ OpAttr() [1/3]

Ort::OpAttr::OpAttr ( )
default

◆ OpAttr() [2/3]

Ort::OpAttr::OpAttr ( std::nullptr_t  )
inlineexplicit

◆ OpAttr() [3/3]

Ort::OpAttr::OpAttr ( const char *  name,
const void *  data,
int  len,
OrtOpAttrType  type 
)

Member Function Documentation

◆ GetConst()

ConstOpAttr Ort::OpAttr::GetConst ( ) const
inline