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: usize) -> ONNXTensorElementDataType>, pub GetInputTypeCount: Option<unsafe extern "C" fn(op: *const OrtCustomOp) -> usize>, pub GetOutputType: Option<unsafe extern "C" fn(op: *const OrtCustomOp, index: usize) -> ONNXTensorElementDataType>, pub GetOutputTypeCount: Option<unsafe extern "C" fn(op: *const OrtCustomOp) -> usize>, 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)>, pub GetInputCharacteristic: Option<unsafe extern "C" fn(op: *const OrtCustomOp, index: usize) -> OrtCustomOpInputOutputCharacteristic>, pub GetOutputCharacteristic: Option<unsafe extern "C" fn(op: *const OrtCustomOp, index: usize) -> OrtCustomOpInputOutputCharacteristic>, }

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: usize) -> ONNXTensorElementDataType>GetInputTypeCount: Option<unsafe extern "C" fn(op: *const OrtCustomOp) -> usize>GetOutputType: Option<unsafe extern "C" fn(op: *const OrtCustomOp, index: usize) -> ONNXTensorElementDataType>GetOutputTypeCount: Option<unsafe extern "C" fn(op: *const OrtCustomOp) -> usize>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)>GetInputCharacteristic: Option<unsafe extern "C" fn(op: *const OrtCustomOp, index: usize) -> OrtCustomOpInputOutputCharacteristic>GetOutputCharacteristic: Option<unsafe extern "C" fn(op: *const OrtCustomOp, index: usize) -> OrtCustomOpInputOutputCharacteristic>

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.