HDK
|
This struct owns the OrtKernInfo* pointer when a copy is made. For convenient wrapping of OrtKernelInfo* passed to kernel constructor and query attributes, warp the pointer with Ort::Unowned<KernelInfo> instance so it does not destroy the pointer the kernel does not own. More...
#include <onnxruntime_cxx_api.h>
Public Member Functions | |
KernelInfo (std::nullptr_t) | |
Create an empty instance to initialize later. More... | |
KernelInfo (OrtKernelInfo *info) | |
Take ownership of the instance. More... | |
ConstKernelInfo | GetConst () const |
Public Member Functions inherited from Ort::detail::KernelInfoImpl< OrtKernelInfo > | |
KernelInfo | Copy () const |
R | GetAttribute (const char *name) const |
std::vector< R > | GetAttributes (const char *name) const |
Value | GetTensorAttribute (const char *name, OrtAllocator *allocator) const |
size_t | GetInputCount () const |
size_t | GetOutputCount () const |
std::string | GetInputName (size_t index) const |
std::string | GetOutputName (size_t index) const |
TypeInfo | GetInputTypeInfo (size_t index) const |
TypeInfo | GetOutputTypeInfo (size_t index) const |
ConstValue | GetTensorConstantInput (size_t index, int *is_constant) const |
std::string | GetNodeName () const |
Logger | GetLogger () const |
Public Member Functions inherited from Ort::detail::Base< OrtKernelInfo > | |
constexpr | Base ()=default |
constexpr | Base (contained_type *p) noexcept |
Base (const Base &)=delete | |
Base (Base &&v) noexcept | |
~Base () | |
Base & | operator= (const Base &)=delete |
Base & | operator= (Base &&v) noexcept |
constexpr | operator contained_type * () const noexcept |
contained_type * | release () |
Relinquishes ownership of the contained C object pointer The underlying object is not destroyed. More... | |
Additional Inherited Members | |
Public Types inherited from Ort::detail::KernelInfoImpl< OrtKernelInfo > | |
using | B = Base< OrtKernelInfo > |
Public Types inherited from Ort::detail::Base< OrtKernelInfo > | |
using | contained_type = OrtKernelInfo |
Protected Attributes inherited from Ort::detail::Base< OrtKernelInfo > | |
contained_type * | p_ |
This struct owns the OrtKernInfo* pointer when a copy is made. For convenient wrapping of OrtKernelInfo* passed to kernel constructor and query attributes, warp the pointer with Ort::Unowned<KernelInfo> instance so it does not destroy the pointer the kernel does not own.
Definition at line 2127 of file onnxruntime_cxx_api.h.
|
inlineexplicit |
Create an empty instance to initialize later.
Definition at line 2128 of file onnxruntime_cxx_api.h.
|
inlineexplicit |
Take ownership of the instance.
Definition at line 1835 of file onnxruntime_cxx_inline.h.
|
inline |
Definition at line 2130 of file onnxruntime_cxx_api.h.