pub struct LocalTuner<AK: AutotuneKey, ID> { /* private fields */ }
Expand description
A local tuner allows to create a tuner for a specific key that can be different from the server key.
Implementations§
Source§impl<AK, ID> LocalTuner<AK, ID>
impl<AK, ID> LocalTuner<AK, ID>
Sourcepub fn init<In, Out, F>(&self, init_set: F) -> Arc<TunableSet<AK, In, Out>>where
F: Fn() -> TunableSet<AK, In, Out> + 'static + Send + Sync,
In: Clone + Send + 'static,
Out: AutotuneOutput,
pub fn init<In, Out, F>(&self, init_set: F) -> Arc<TunableSet<AK, In, Out>>where
F: Fn() -> TunableSet<AK, In, Out> + 'static + Send + Sync,
In: Clone + Send + 'static,
Out: AutotuneOutput,
Init the tunable set
Sourcepub fn execute<S, C, In, Out>(
&self,
id: &ID,
client: &ComputeClient<S, C>,
operations: Arc<TunableSet<AK, In, Out>>,
inputs: In,
) -> Outwhere
S: ComputeServer + 'static,
C: ComputeChannel<S> + 'static,
In: Clone + Send + 'static,
Out: AutotuneOutput,
pub fn execute<S, C, In, Out>(
&self,
id: &ID,
client: &ComputeClient<S, C>,
operations: Arc<TunableSet<AK, In, Out>>,
inputs: In,
) -> Outwhere
S: ComputeServer + 'static,
C: ComputeChannel<S> + 'static,
In: Clone + Send + 'static,
Out: AutotuneOutput,
Execute the best operation in the provided tunable set
Trait Implementations§
impl<AK: AutotuneKey, ID> Sync for LocalTuner<AK, ID>
Auto Trait Implementations§
impl<AK, ID> !Freeze for LocalTuner<AK, ID>
impl<AK, ID> !RefUnwindSafe for LocalTuner<AK, ID>
impl<AK, ID> Send for LocalTuner<AK, ID>where
ID: Send,
impl<AK, ID> !Unpin for LocalTuner<AK, ID>
impl<AK, ID> !UnwindSafe for LocalTuner<AK, ID>
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