Struct onnxruntime_sys_ng::OrtCustomOp
source · #[repr(C)]pub struct OrtCustomOp {Show 17 fields
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>,
pub GetInputMemoryType: Option<unsafe extern "C" fn(op: *const OrtCustomOp, index: usize) -> OrtMemType>,
pub GetVariadicInputMinArity: Option<unsafe extern "C" fn(op: *const OrtCustomOp) -> c_int>,
pub GetVariadicInputHomogeneity: Option<unsafe extern "C" fn(op: *const OrtCustomOp) -> c_int>,
pub GetVariadicOutputMinArity: Option<unsafe extern "C" fn(op: *const OrtCustomOp) -> c_int>,
pub GetVariadicOutputHomogeneity: Option<unsafe extern "C" fn(op: *const OrtCustomOp) -> c_int>,
}
Fields§
§version: u32
§CreateKernel: 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>
§GetInputMemoryType: Option<unsafe extern "C" fn(op: *const OrtCustomOp, index: usize) -> OrtMemType>
§GetVariadicInputMinArity: Option<unsafe extern "C" fn(op: *const OrtCustomOp) -> c_int>
§GetVariadicInputHomogeneity: Option<unsafe extern "C" fn(op: *const OrtCustomOp) -> c_int>
§GetVariadicOutputMinArity: Option<unsafe extern "C" fn(op: *const OrtCustomOp) -> c_int>
§GetVariadicOutputHomogeneity: Option<unsafe extern "C" fn(op: *const OrtCustomOp) -> c_int>
Trait Implementations§
source§impl Clone for OrtCustomOp
impl Clone for OrtCustomOp
source§fn clone(&self) -> OrtCustomOp
fn clone(&self) -> OrtCustomOp
Returns a copy 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 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