pub struct ConcatenatePlan { /* private fields */ }Expand description
A compiled multi-input concatenate traversal.
Each input segment is lowered to a prepared strided copy into the corresponding destination window.
Implementations§
Source§impl ConcatenatePlan
impl ConcatenatePlan
Sourcepub fn compile(
input_dims: &[&[usize]],
input_strides: &[&[isize]],
dest_dims: &[usize],
dest_strides: &[isize],
axis: usize,
) -> Result<Self>
pub fn compile( input_dims: &[&[usize]], input_strides: &[&[isize]], dest_dims: &[usize], dest_strides: &[isize], axis: usize, ) -> Result<Self>
Compile a multi-input concatenate plan for fixed input and destination layouts.
Sourcepub fn execute<T>(
&self,
dest: &mut RawStridedMut<'_, T>,
inputs: &[RawStridedRef<'_, T>],
) -> Result<()>where
T: Copy + MaybeSendSync,
pub fn execute<T>(
&self,
dest: &mut RawStridedMut<'_, T>,
inputs: &[RawStridedRef<'_, T>],
) -> Result<()>where
T: Copy + MaybeSendSync,
Execute the prepared concatenate traversal.
Sourcepub fn execute_uninit<T>(
&self,
dest: &mut RawStridedMut<'_, MaybeUninit<T>>,
inputs: &[RawStridedRef<'_, T>],
) -> Result<()>where
T: Copy + MaybeSendSync,
pub fn execute_uninit<T>(
&self,
dest: &mut RawStridedMut<'_, MaybeUninit<T>>,
inputs: &[RawStridedRef<'_, T>],
) -> Result<()>where
T: Copy + MaybeSendSync,
Execute concatenate into storage whose reachable destination elements are uninitialized.
Trait Implementations§
Source§impl Clone for ConcatenatePlan
impl Clone for ConcatenatePlan
Source§fn clone(&self) -> ConcatenatePlan
fn clone(&self) -> ConcatenatePlan
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 ConcatenatePlan
impl RefUnwindSafe for ConcatenatePlan
impl Send for ConcatenatePlan
impl Sync for ConcatenatePlan
impl Unpin for ConcatenatePlan
impl UnsafeUnpin for ConcatenatePlan
impl UnwindSafe for ConcatenatePlan
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