Struct onnxruntime_sys::OrtCustomOp[][src]

#[repr(C)]pub struct OrtCustomOp {
    pub version: u32,
    pub CreateKernel: Option<unsafe extern "C" fn(op: *const OrtCustomOp, api: *const OrtApi, info: *const OrtKernelInfo) -> *mut c_void>,
    pub GetName: Option<unsafe extern "C" fn(op: *const OrtCustomOp) -> *const c_char>,
    pub GetExecutionProviderType: Option<unsafe extern "C" fn(op: *const OrtCustomOp) -> *const c_char>,
    pub GetInputType: Option<unsafe extern "C" fn(op: *const OrtCustomOp, index: size_t) -> ONNXTensorElementDataType>,
    pub GetInputTypeCount: Option<unsafe extern "C" fn(op: *const OrtCustomOp) -> size_t>,
    pub GetOutputType: Option<unsafe extern "C" fn(op: *const OrtCustomOp, index: size_t) -> ONNXTensorElementDataType>,
    pub GetOutputTypeCount: Option<unsafe extern "C" fn(op: *const OrtCustomOp) -> size_t>,
    pub KernelCompute: Option<unsafe extern "C" fn(op_kernel: *mut c_void, context: *mut OrtKernelContext)>,
    pub KernelDestroy: Option<unsafe extern "C" fn(op_kernel: *mut c_void)>,
}

Fields

version: u32CreateKernel: Option<unsafe extern "C" fn(op: *const OrtCustomOp, api: *const OrtApi, info: *const OrtKernelInfo) -> *mut c_void>GetName: Option<unsafe extern "C" fn(op: *const OrtCustomOp) -> *const c_char>GetExecutionProviderType: Option<unsafe extern "C" fn(op: *const OrtCustomOp) -> *const c_char>GetInputType: Option<unsafe extern "C" fn(op: *const OrtCustomOp, index: size_t) -> ONNXTensorElementDataType>GetInputTypeCount: Option<unsafe extern "C" fn(op: *const OrtCustomOp) -> size_t>GetOutputType: Option<unsafe extern "C" fn(op: *const OrtCustomOp, index: size_t) -> ONNXTensorElementDataType>GetOutputTypeCount: Option<unsafe extern "C" fn(op: *const OrtCustomOp) -> size_t>KernelCompute: Option<unsafe extern "C" fn(op_kernel: *mut c_void, context: *mut OrtKernelContext)>KernelDestroy: Option<unsafe extern "C" fn(op_kernel: *mut c_void)>

Trait Implementations

impl Clone for OrtCustomOp[src]

impl Copy for OrtCustomOp[src]

impl Debug for OrtCustomOp[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.