HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Ort::KernelInfo Struct Reference

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>

+ Inheritance diagram for Ort::KernelInfo:

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< RGetAttributes (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
 
- 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 ()
 
Baseoperator= (const Base &)=delete
 
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. 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_typep_
 

Detailed Description

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 1565 of file onnxruntime_cxx_api.h.

Constructor & Destructor Documentation

Ort::KernelInfo::KernelInfo ( std::nullptr_t  )
inlineexplicit

Create an empty instance to initialize later.

Definition at line 1566 of file onnxruntime_cxx_api.h.

Ort::KernelInfo::KernelInfo ( OrtKernelInfo info)
inlineexplicit

Take ownership of the instance.

Definition at line 1583 of file onnxruntime_cxx_inline.h.

Member Function Documentation

ConstKernelInfo Ort::KernelInfo::GetConst ( ) const
inline

Definition at line 1568 of file onnxruntime_cxx_api.h.


The documentation for this struct was generated from the following files: