![]() |
ONNX Runtime
|
This struct provides life time management for custom op attribute. More...
#include <onnxruntime_cxx_api.h>
Public Types | |
using | Base = detail::ConstOpAttrImpl< OrtOpAttr > |
![]() | |
using | B = detail::Base< OrtOpAttr > |
![]() | |
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 |
![]() | |
std::string | GetName () const |
OrtOpAttrType | GetType () const |
Status | GetValue (R &out) const |
Status | GetValueArray (std::vector< R > &out) const |
Status | GetTensorAttributeAsOrtValue (Value &) const |
![]() | |
constexpr | Base ()=default |
constexpr | Base (contained_type *p) noexcept |
~Base () | |
Base (const Base &)=delete | |
Base & | operator= (const Base &)=delete |
Base (Base &&v) noexcept | |
Base & | operator= (Base &&v) noexcept |
constexpr | operator contained_type * () const noexcept |
constexpr contained_type & | operator* () const noexcept |
contained_type * | release () |
Relinquishes ownership of the contained C object pointer The underlying object is not destroyed. | |
Additional Inherited Members | |
![]() | |
contained_type * | p_ {} |
This struct provides life time management for custom op attribute.
|
default |
|
inlineexplicit |
Ort::OpAttr::OpAttr | ( | const char * | name, |
const void * | data, | ||
int | len, | ||
OrtOpAttrType | type | ||
) |
|
inline |