pub struct ScatterDescriptor<const N: usize> {
pub upd_shape: [i32; N],
pub scatter_dim: i32,
pub out_dim_size: i32,
pub element: ElementKind,
}Expand description
Descriptor for a scatter (pure assign) op.
Identifies the shape of updates (== index shape), the axis, and
the extent of out along that axis. T::KIND must equal element.
Fields§
§upd_shape: [i32; N]Shape of updates / index.
scatter_dim: i32Scatter axis (must be in [0, N)).
out_dim_size: i32Extent of out along scatter_dim (in-bounds check on indices).
element: ElementKindValue element type.
Trait Implementations§
Source§impl<const N: usize> Clone for ScatterDescriptor<N>
impl<const N: usize> Clone for ScatterDescriptor<N>
Source§fn clone(&self) -> ScatterDescriptor<N>
fn clone(&self) -> ScatterDescriptor<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 ScatterDescriptor<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for ScatterDescriptor<N>
impl<const N: usize> RefUnwindSafe for ScatterDescriptor<N>
impl<const N: usize> Send for ScatterDescriptor<N>
impl<const N: usize> Sync for ScatterDescriptor<N>
impl<const N: usize> Unpin for ScatterDescriptor<N>
impl<const N: usize> UnsafeUnpin for ScatterDescriptor<N>
impl<const N: usize> UnwindSafe for ScatterDescriptor<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