pub struct ReduceBackwardDescriptor<const N: usize> {
pub kind: ReduceKind,
pub input_shape: [i32; N],
pub reduce_axis: u8,
pub element: ElementKind,
pub correction: i32,
}Expand description
Descriptor for a single-axis reduction backward.
Fields§
§kind: ReduceKindWhich forward reduction this is the backward of.
input_shape: [i32; N]Shape of the forward input (= shape of dx).
reduce_axis: u8Axis that was reduced. Must satisfy 0 <= reduce_axis < N.
element: ElementKindElement type.
correction: i32Bessel correction for Var / Std BW only. 1 = sample
variance (PyTorch default), 0 = population variance. Ignored
by other reductions.
Implementations§
Trait Implementations§
Source§impl<const N: usize> Clone for ReduceBackwardDescriptor<N>
impl<const N: usize> Clone for ReduceBackwardDescriptor<N>
Source§fn clone(&self) -> ReduceBackwardDescriptor<N>
fn clone(&self) -> ReduceBackwardDescriptor<N>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<const N: usize> Copy for ReduceBackwardDescriptor<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for ReduceBackwardDescriptor<N>
impl<const N: usize> RefUnwindSafe for ReduceBackwardDescriptor<N>
impl<const N: usize> Send for ReduceBackwardDescriptor<N>
impl<const N: usize> Sync for ReduceBackwardDescriptor<N>
impl<const N: usize> Unpin for ReduceBackwardDescriptor<N>
impl<const N: usize> UnsafeUnpin for ReduceBackwardDescriptor<N>
impl<const N: usize> UnwindSafe for ReduceBackwardDescriptor<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