pub struct RollDescriptor<const N: usize> {
pub shape: [i32; N],
pub shifts: [i32; N],
pub element: ElementKind,
}Expand description
Descriptor for a roll op.
shifts[d] is the shift amount along axis d. Can be negative.
Normalized to [0, shape[d]) by the kernel.
Fields§
§shape: [i32; N]Input/output tensor shape.
shifts: [i32; N]Per-axis shift amounts (positive or negative).
element: ElementKindElement type.
Trait Implementations§
Source§impl<const N: usize> Clone for RollDescriptor<N>
impl<const N: usize> Clone for RollDescriptor<N>
Source§fn clone(&self) -> RollDescriptor<N>
fn clone(&self) -> RollDescriptor<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 RollDescriptor<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for RollDescriptor<N>
impl<const N: usize> RefUnwindSafe for RollDescriptor<N>
impl<const N: usize> Send for RollDescriptor<N>
impl<const N: usize> Sync for RollDescriptor<N>
impl<const N: usize> Unpin for RollDescriptor<N>
impl<const N: usize> UnsafeUnpin for RollDescriptor<N>
impl<const N: usize> UnwindSafe for RollDescriptor<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