pub struct ReversePlan { /* private fields */ }Expand description
A compiled reverse traversal over selected axes.
Replay is a strided copy from a negative-stride source view.
Implementations§
Source§impl ReversePlan
impl ReversePlan
Sourcepub fn compile(
operand_dims: &[usize],
operand_strides: &[isize],
dest_strides: &[isize],
axes: &[usize],
) -> Result<Self>
pub fn compile( operand_dims: &[usize], operand_strides: &[isize], dest_strides: &[isize], axes: &[usize], ) -> Result<Self>
Compile a reverse plan for one operand layout, destination layout, and axis set.
Sourcepub fn execute<T>(
&self,
dest: &mut RawStridedMut<'_, T>,
operand: &RawStridedRef<'_, T>,
) -> Result<()>where
T: Copy + MaybeSendSync,
pub fn execute<T>(
&self,
dest: &mut RawStridedMut<'_, T>,
operand: &RawStridedRef<'_, T>,
) -> Result<()>where
T: Copy + MaybeSendSync,
Execute the prepared reverse traversal.
Sourcepub fn execute_uninit<T>(
&self,
dest: &mut RawStridedMut<'_, MaybeUninit<T>>,
operand: &RawStridedRef<'_, T>,
) -> Result<()>where
T: Copy + MaybeSendSync,
pub fn execute_uninit<T>(
&self,
dest: &mut RawStridedMut<'_, MaybeUninit<T>>,
operand: &RawStridedRef<'_, T>,
) -> Result<()>where
T: Copy + MaybeSendSync,
Execute reverse into storage whose reachable destination elements are uninitialized.
Trait Implementations§
Source§impl Clone for ReversePlan
impl Clone for ReversePlan
Source§fn clone(&self) -> ReversePlan
fn clone(&self) -> ReversePlan
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 moreAuto Trait Implementations§
impl Freeze for ReversePlan
impl RefUnwindSafe for ReversePlan
impl Send for ReversePlan
impl Sync for ReversePlan
impl Unpin for ReversePlan
impl UnsafeUnpin for ReversePlan
impl UnwindSafe for ReversePlan
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