pub struct ReduceOps<Run: JitRuntime, In: JitElement, Out: JitElement, Rd: Reduce> { /* private fields */ }Implementations§
Source§impl<Run: JitRuntime, In: JitElement, Out: JitElement, Rd: Reduce> ReduceOps<Run, In, Out, Rd>
impl<Run: JitRuntime, In: JitElement, Out: JitElement, Rd: Reduce> ReduceOps<Run, In, Out, Rd>
Trait Implementations§
Source§impl<Run: JitRuntime, In: JitElement, Out: JitElement, Rd: Reduce> AutotuneOperationSet<JitAutotuneKey> for ReduceOps<Run, In, Out, Rd>
impl<Run: JitRuntime, In: JitElement, Out: JitElement, Rd: Reduce> AutotuneOperationSet<JitAutotuneKey> for ReduceOps<Run, In, Out, Rd>
Source§fn key(&self) -> JitAutotuneKey
fn key(&self) -> JitAutotuneKey
The key used in the tune cache
Source§fn autotunables(&self) -> Vec<Box<dyn AutotuneOperation<()>>>
fn autotunables(&self) -> Vec<Box<dyn AutotuneOperation<()>>>
All candidate operations for autotuning this operation type
Operations can run on toy tensors of relevant size
Source§fn fastest(
self: Box<Self>,
fastest_index: usize,
) -> Box<dyn AutotuneOperation<()>>
fn fastest( self: Box<Self>, fastest_index: usize, ) -> Box<dyn AutotuneOperation<()>>
Returns the operation for the given index, matching the order
returned by autotunables. Operation obtained here runs on original tensors
Nb: The 0 index is used a “good default”.
Source§fn should_run(&self, key: &JitAutotuneKey, index: usize) -> bool
fn should_run(&self, key: &JitAutotuneKey, index: usize) -> bool
Enable or disable certain indices from being benchmarked based on the key
Source§fn compute_checksum(&self) -> String
fn compute_checksum(&self) -> String
Compute a checksum that can invalidate outdated cached auto-tune results.
Auto Trait Implementations§
impl<Run, In, Out, Rd> Freeze for ReduceOps<Run, In, Out, Rd>
impl<Run, In, Out, Rd> !RefUnwindSafe for ReduceOps<Run, In, Out, Rd>
impl<Run, In, Out, Rd> Send for ReduceOps<Run, In, Out, Rd>
impl<Run, In, Out, Rd> Sync for ReduceOps<Run, In, Out, Rd>
impl<Run, In, Out, Rd> Unpin for ReduceOps<Run, In, Out, Rd>
impl<Run, In, Out, Rd> !UnwindSafe for ReduceOps<Run, In, Out, Rd>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more