pub trait Operator: Send {
type Kernel: Kernel;
// Required methods
fn name() -> &'static str;
fn inputs() -> Vec<OperatorInput>;
fn outputs() -> Vec<OperatorOutput>;
fn create_kernel(attributes: &KernelAttributes) -> Result<Self::Kernel>;
// Provided methods
fn execution_provider_type() -> Option<&'static str> { ... }
fn min_version() -> c_int { ... }
fn max_version() -> c_int { ... }
fn get_infer_shape_function() -> Option<Box<InferShapeFn>> { ... }
}
Required Associated Types§
Required Methods§
fn name() -> &'static str
fn inputs() -> Vec<OperatorInput>
fn outputs() -> Vec<OperatorOutput>
fn create_kernel(attributes: &KernelAttributes) -> Result<Self::Kernel>
Provided Methods§
fn execution_provider_type() -> Option<&'static str>
fn min_version() -> c_int
fn max_version() -> c_int
fn get_infer_shape_function() -> Option<Box<InferShapeFn>>
Object Safety§
This trait is not object safe.