pub struct ReduceArgs<'a, T: Element, const N: usize> {
pub x: TensorRef<'a, T, N>,
pub y: TensorMut<'a, T, N>,
}Expand description
Args bundle for a reduction launch.
x.shape must match desc.input_shape. y.shape must match the
derived output shape. Output is conventionally contiguous; the
kernel accepts arbitrary strides.
Fields§
§x: TensorRef<'a, T, N>Input tensor.
y: TensorMut<'a, T, N>Output tensor — shape == input with reduced axis collapsed to 1.
Auto Trait Implementations§
impl<'a, T, const N: usize> !UnwindSafe for ReduceArgs<'a, T, N>
impl<'a, T, const N: usize> Freeze for ReduceArgs<'a, T, N>
impl<'a, T, const N: usize> RefUnwindSafe for ReduceArgs<'a, T, N>where
T: RefUnwindSafe,
impl<'a, T, const N: usize> Send for ReduceArgs<'a, T, N>
impl<'a, T, const N: usize> Sync for ReduceArgs<'a, T, N>where
T: Sync,
impl<'a, T, const N: usize> Unpin for ReduceArgs<'a, T, N>
impl<'a, T, const N: usize> UnsafeUnpin for ReduceArgs<'a, T, N>
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