pub struct ReductionKernel {
pub operation: String,
pub input_size: usize,
pub output_size: usize,
pub num_axes: usize,
}Expand description
Reduction operations async kernel
Fields§
§operation: String§input_size: usize§output_size: usize§num_axes: usizeImplementations§
Trait Implementations§
Source§impl AsyncKernel for ReductionKernel
impl AsyncKernel for ReductionKernel
Source§fn execute(&self) -> Pin<Box<dyn Future<Output = Result<()>> + Send>>
fn execute(&self) -> Pin<Box<dyn Future<Output = Result<()>> + Send>>
Execute the kernel asynchronously
Source§fn estimated_time_us(&self) -> u64
fn estimated_time_us(&self) -> u64
Get estimated execution time in microseconds
Source§fn can_batch_with(&self, other: &dyn AsyncKernel) -> bool
fn can_batch_with(&self, other: &dyn AsyncKernel) -> bool
Check if this kernel can be batched with another
Source§fn supports_concurrency(&self) -> bool
fn supports_concurrency(&self) -> bool
Check if kernel supports concurrent execution
Source§fn memory_requirements(&self) -> usize
fn memory_requirements(&self) -> usize
Get memory requirements in bytes
Auto Trait Implementations§
impl Freeze for ReductionKernel
impl RefUnwindSafe for ReductionKernel
impl Send for ReductionKernel
impl Sync for ReductionKernel
impl Unpin for ReductionKernel
impl UnsafeUnpin for ReductionKernel
impl UnwindSafe for ReductionKernel
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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