HDK
|
#include <op_kernel.h>
Public Types | |
using | DoneCallback = std::function< void()> |
Public Member Functions | |
OpKernel (const OpKernelInfo &info) | |
virtual | ~OpKernel ()=default |
const onnxruntime::Node & | Node () const |
const onnxruntime::KernelDef & | KernelDef () const |
virtual Status | Compute (_Inout_ OpKernelContext *context) const =0 |
virtual bool | IsAsync () const |
virtual Status | ComputeAsync (_Inout_ OpKernelContext *, DoneCallback) const |
virtual Status | PrePack (const Tensor &, int, AllocatorPtr, bool &is_packed, PrePackedWeights *) |
virtual Status | UseSharedPrePackedBuffers (std::vector< BufferUniquePtr > &, int, bool &used_shared_buffers) |
const OrtMemoryInfo & | Allocator (int id, OrtMemType mem_type) const |
const OpKernelInfo & | Info () const |
Definition at line 43 of file op_kernel.h.
using onnxruntime::OpKernel::DoneCallback = std::function<void()> |
Definition at line 45 of file op_kernel.h.
|
inlineexplicit |
Definition at line 47 of file op_kernel.h.
|
virtualdefault |
const OrtMemoryInfo& onnxruntime::OpKernel::Allocator | ( | int | id, |
OrtMemType | mem_type | ||
) | const |
|
pure virtual |
|
inlinevirtual |
Definition at line 60 of file op_kernel.h.
|
inline |
Definition at line 125 of file op_kernel.h.
|
inlinevirtual |
Definition at line 55 of file op_kernel.h.
const onnxruntime::KernelDef& onnxruntime::OpKernel::KernelDef | ( | ) | const |
const onnxruntime::Node& onnxruntime::OpKernel::Node | ( | ) | const |
|
inlinevirtual |
Definition at line 95 of file op_kernel.h.
|
inlinevirtual |
Definition at line 117 of file op_kernel.h.