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 >.
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.
◆ Base
◆ KernelInfo() [1/2]
Ort::KernelInfo::KernelInfo |
( |
std::nullptr_t |
| ) |
|
|
inlineexplicit |
Create an empty instance to initialize later.
◆ KernelInfo() [2/2]
Take ownership of the instance.
◆ GetConst()