ONNX Runtime
Loading...
Searching...
No Matches
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>

Inherits Ort::detail::KernelInfoImpl< T >.

Public Member Functions

 KernelInfo (std::nullptr_t)
 Create an empty instance to initialize later.
 
 KernelInfo (OrtKernelInfo *info)
 Take ownership of the instance.
 
ConstKernelInfo GetConst () const
 

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.

Constructor & Destructor Documentation

◆ KernelInfo() [1/2]

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

Create an empty instance to initialize later.

◆ KernelInfo() [2/2]

Ort::KernelInfo::KernelInfo ( OrtKernelInfo info)
explicit

Take ownership of the instance.

Member Function Documentation

◆ GetConst()

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