#[repr(C)]pub struct OrtCustomOp {Show 26 fields
pub version: u32,
pub CreateKernel: Option<unsafe extern "system" fn(op: *const OrtCustomOp, api: *const OrtApi, info: *const OrtKernelInfo) -> *mut c_void>,
pub GetName: Option<unsafe extern "system" fn(op: *const OrtCustomOp) -> *const c_char>,
pub GetExecutionProviderType: Option<unsafe extern "system" fn(op: *const OrtCustomOp) -> *const c_char>,
pub GetInputType: Option<unsafe extern "system" fn(op: *const OrtCustomOp, index: usize) -> ONNXTensorElementDataType>,
pub GetInputTypeCount: Option<unsafe extern "system" fn(op: *const OrtCustomOp) -> usize>,
pub GetOutputType: Option<unsafe extern "system" fn(op: *const OrtCustomOp, index: usize) -> ONNXTensorElementDataType>,
pub GetOutputTypeCount: Option<unsafe extern "system" fn(op: *const OrtCustomOp) -> usize>,
pub KernelCompute: Option<unsafe extern "system" fn(op_kernel: *mut c_void, context: *mut OrtKernelContext)>,
pub KernelDestroy: Option<unsafe extern "system" fn(op_kernel: *mut c_void)>,
pub GetInputCharacteristic: Option<unsafe extern "system" fn(op: *const OrtCustomOp, index: usize) -> OrtCustomOpInputOutputCharacteristic>,
pub GetOutputCharacteristic: Option<unsafe extern "system" fn(op: *const OrtCustomOp, index: usize) -> OrtCustomOpInputOutputCharacteristic>,
pub GetInputMemoryType: Option<unsafe extern "system" fn(op: *const OrtCustomOp, index: usize) -> OrtMemType>,
pub GetVariadicInputMinArity: Option<unsafe extern "system" fn(op: *const OrtCustomOp) -> c_int>,
pub GetVariadicInputHomogeneity: Option<unsafe extern "system" fn(op: *const OrtCustomOp) -> c_int>,
pub GetVariadicOutputMinArity: Option<unsafe extern "system" fn(op: *const OrtCustomOp) -> c_int>,
pub GetVariadicOutputHomogeneity: Option<unsafe extern "system" fn(op: *const OrtCustomOp) -> c_int>,
pub CreateKernelV2: Option<unsafe extern "system" fn(op: *const OrtCustomOp, api: *const OrtApi, info: *const OrtKernelInfo, kernel: *mut *mut c_void) -> OrtStatusPtr>,
pub KernelComputeV2: Option<unsafe extern "system" fn(op_kernel: *mut c_void, context: *mut OrtKernelContext) -> OrtStatusPtr>,
pub InferOutputShapeFn: Option<unsafe extern "system" fn(op: *const OrtCustomOp, arg1: *mut OrtShapeInferContext) -> OrtStatusPtr>,
pub GetStartVersion: Option<unsafe extern "system" fn(op: *const OrtCustomOp) -> c_int>,
pub GetEndVersion: Option<unsafe extern "system" fn(op: *const OrtCustomOp) -> c_int>,
pub GetMayInplace: Option<unsafe extern "system" fn(input_index: *mut *mut c_int, output_index: *mut *mut c_int) -> usize>,
pub ReleaseMayInplace: Option<unsafe extern "system" fn(input_index: *mut c_int, output_index: *mut *mut c_int)>,
pub GetAliasMap: Option<unsafe extern "system" fn(input_index: *mut *mut c_int, output_index: *mut *mut c_int) -> usize>,
pub ReleaseAliasMap: Option<unsafe extern "system" fn(input_index: *mut c_int, output_index: *mut *mut c_int)>,
}Fields§
§version: u32§CreateKernel: Option<unsafe extern "system" fn(op: *const OrtCustomOp, api: *const OrtApi, info: *const OrtKernelInfo) -> *mut c_void>§GetName: Option<unsafe extern "system" fn(op: *const OrtCustomOp) -> *const c_char>§GetExecutionProviderType: Option<unsafe extern "system" fn(op: *const OrtCustomOp) -> *const c_char>§GetInputType: Option<unsafe extern "system" fn(op: *const OrtCustomOp, index: usize) -> ONNXTensorElementDataType>§GetInputTypeCount: Option<unsafe extern "system" fn(op: *const OrtCustomOp) -> usize>§GetOutputType: Option<unsafe extern "system" fn(op: *const OrtCustomOp, index: usize) -> ONNXTensorElementDataType>§GetOutputTypeCount: Option<unsafe extern "system" fn(op: *const OrtCustomOp) -> usize>§KernelCompute: Option<unsafe extern "system" fn(op_kernel: *mut c_void, context: *mut OrtKernelContext)>§KernelDestroy: Option<unsafe extern "system" fn(op_kernel: *mut c_void)>§GetInputCharacteristic: Option<unsafe extern "system" fn(op: *const OrtCustomOp, index: usize) -> OrtCustomOpInputOutputCharacteristic>§GetOutputCharacteristic: Option<unsafe extern "system" fn(op: *const OrtCustomOp, index: usize) -> OrtCustomOpInputOutputCharacteristic>§GetInputMemoryType: Option<unsafe extern "system" fn(op: *const OrtCustomOp, index: usize) -> OrtMemType>§GetVariadicInputMinArity: Option<unsafe extern "system" fn(op: *const OrtCustomOp) -> c_int>§GetVariadicInputHomogeneity: Option<unsafe extern "system" fn(op: *const OrtCustomOp) -> c_int>§GetVariadicOutputMinArity: Option<unsafe extern "system" fn(op: *const OrtCustomOp) -> c_int>§GetVariadicOutputHomogeneity: Option<unsafe extern "system" fn(op: *const OrtCustomOp) -> c_int>§CreateKernelV2: Option<unsafe extern "system" fn(op: *const OrtCustomOp, api: *const OrtApi, info: *const OrtKernelInfo, kernel: *mut *mut c_void) -> OrtStatusPtr>§KernelComputeV2: Option<unsafe extern "system" fn(op_kernel: *mut c_void, context: *mut OrtKernelContext) -> OrtStatusPtr>§InferOutputShapeFn: Option<unsafe extern "system" fn(op: *const OrtCustomOp, arg1: *mut OrtShapeInferContext) -> OrtStatusPtr>§GetStartVersion: Option<unsafe extern "system" fn(op: *const OrtCustomOp) -> c_int>§GetEndVersion: Option<unsafe extern "system" fn(op: *const OrtCustomOp) -> c_int>§GetMayInplace: Option<unsafe extern "system" fn(input_index: *mut *mut c_int, output_index: *mut *mut c_int) -> usize>§ReleaseMayInplace: Option<unsafe extern "system" fn(input_index: *mut c_int, output_index: *mut *mut c_int)>§GetAliasMap: Option<unsafe extern "system" fn(input_index: *mut *mut c_int, output_index: *mut *mut c_int) -> usize>§ReleaseAliasMap: Option<unsafe extern "system" fn(input_index: *mut c_int, output_index: *mut *mut c_int)>Trait Implementations§
Source§impl Clone for OrtCustomOp
impl Clone for OrtCustomOp
Source§fn clone(&self) -> OrtCustomOp
fn clone(&self) -> OrtCustomOp
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OrtCustomOp
impl Debug for OrtCustomOp
impl Copy for OrtCustomOp
Auto Trait Implementations§
impl Freeze for OrtCustomOp
impl RefUnwindSafe for OrtCustomOp
impl Send for OrtCustomOp
impl Sync for OrtCustomOp
impl Unpin for OrtCustomOp
impl UnwindSafe for OrtCustomOp
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more