cubecl_runtime::tune

Trait AutotuneOperation

Source
pub trait AutotuneOperation<Output = ()>: Debug {
    // Required methods
    fn execute(self: Box<Self>) -> Output;
    fn clone(&self) -> Box<dyn AutotuneOperation<Output>>;

    // Provided method
    fn name(&self) -> &str { ... }
}
Expand description

Contains operation to run and inputs on which to run it

Required Methods§

Source

fn execute(self: Box<Self>) -> Output

Runs the operation

Source

fn clone(&self) -> Box<dyn AutotuneOperation<Output>>

Clones the operation and inputs

Provided Methods§

Source

fn name(&self) -> &str

The name of the operation.

Trait Implementations§

Source§

impl<Out> Clone for Box<dyn AutotuneOperation<Out>>

Source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Implementors§