pub struct IndexAddDescriptor<const N: usize> {
pub src_shape: [i32; N],
pub add_dim: i32,
pub dst_dim_size: i32,
pub element: ElementKind,
}Expand description
Descriptor for an index_add op.
Fields§
§src_shape: [i32; N]Shape of src (the per-row values added into dst).
add_dim: i32Axis along which dst is indexed (must be in [0, N)).
dst_dim_size: i32Extent of dst along add_dim (bounds check on idx entries).
element: ElementKindValue element type.
Trait Implementations§
Source§impl<const N: usize> Clone for IndexAddDescriptor<N>
impl<const N: usize> Clone for IndexAddDescriptor<N>
Source§fn clone(&self) -> IndexAddDescriptor<N>
fn clone(&self) -> IndexAddDescriptor<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 IndexAddDescriptor<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for IndexAddDescriptor<N>
impl<const N: usize> RefUnwindSafe for IndexAddDescriptor<N>
impl<const N: usize> Send for IndexAddDescriptor<N>
impl<const N: usize> Sync for IndexAddDescriptor<N>
impl<const N: usize> Unpin for IndexAddDescriptor<N>
impl<const N: usize> UnsafeUnpin for IndexAddDescriptor<N>
impl<const N: usize> UnwindSafe for IndexAddDescriptor<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