pub struct LocalTuner<AK, ID>where
AK: AutotuneKey,{ /* 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 const fn new(name: &'static str) -> LocalTuner<AK, ID>
pub const fn new(name: &'static str) -> LocalTuner<AK, ID>
Create a new local tuner.
Sourcepub fn execute<S, C, In, Out>(
&self,
id: &ID,
client: &ComputeClient<S, C>,
operations: &TunableSet<AK, In, Out>,
inputs: In,
) -> Outwhere
In: Send + Clone + 'static,
Out: AutotuneOutput,
S: ComputeServer + 'static,
C: ComputeChannel<S> + 'static,
pub fn execute<S, C, In, Out>(
&self,
id: &ID,
client: &ComputeClient<S, C>,
operations: &TunableSet<AK, In, Out>,
inputs: In,
) -> Outwhere
In: Send + Clone + 'static,
Out: AutotuneOutput,
S: ComputeServer + 'static,
C: ComputeChannel<S> + 'static,
Execute the best operation in the provided tunable set
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> Sync for LocalTuner<AK, ID>
impl<AK, ID> !Unpin for LocalTuner<AK, ID>
impl<AK, ID> UnwindSafe for LocalTuner<AK, ID>where
ID: UnwindSafe,
AK: UnwindSafe,
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