pub struct ReduceKernel<RA: ReduceArgs, __R: Runtime> { /* private fields */ }Expand description
reduce_kernel Kernel
Implementations§
Source§impl<RA: ReduceArgs, __R: Runtime> ReduceKernel<RA, __R>
impl<RA: ReduceArgs, __R: Runtime> ReduceKernel<RA, __R>
pub fn new( settings: KernelSettings, client: ComputeClient<__R>, input: <RA::Input<In> as LaunchArg>::CompilationArg, axis_reduce: <usize as LaunchArg>::CompilationArg, output: <RA::Output<Out> as LaunchArg>::CompilationArg, blueprint: ReduceBlueprint, config: ReduceOperationConfig, _input_dtype: StorageType, _output_dtype: StorageType, _acc_dtype: StorageType, ) -> Self
Trait Implementations§
Source§impl<RA: ReduceArgs, __R: Runtime> CubeKernel for ReduceKernel<RA, __R>
impl<RA: ReduceArgs, __R: Runtime> CubeKernel for ReduceKernel<RA, __R>
Source§fn define(&self) -> KernelDefinition
fn define(&self) -> KernelDefinition
Define the kernel for compilation
Source§impl<RA: ReduceArgs, __R: Runtime> KernelMetadata for ReduceKernel<RA, __R>
impl<RA: ReduceArgs, __R: Runtime> KernelMetadata for ReduceKernel<RA, __R>
Auto Trait Implementations§
impl<RA, __R> Freeze for ReduceKernel<RA, __R>where
<<RA as ReduceArgs>::Input<ElemExpand<0>> as LaunchArg>::CompilationArg: Freeze,
<<RA as ReduceArgs>::Output<ElemExpand<1>> as LaunchArg>::CompilationArg: Freeze,
impl<RA, __R> !RefUnwindSafe for ReduceKernel<RA, __R>
impl<RA, __R> Send for ReduceKernel<RA, __R>
impl<RA, __R> Sync for ReduceKernel<RA, __R>
impl<RA, __R> Unpin for ReduceKernel<RA, __R>where
<<RA as ReduceArgs>::Input<ElemExpand<0>> as LaunchArg>::CompilationArg: Unpin,
<<RA as ReduceArgs>::Output<ElemExpand<1>> as LaunchArg>::CompilationArg: Unpin,
__R: Unpin,
RA: Unpin,
<__R as Runtime>::Server: Unpin,
impl<RA, __R> !UnwindSafe for ReduceKernel<RA, __R>
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