pub struct ErasedConcatenatePlan { /* private fields */ }Expand description
Dtype-erased concatenate wrapper.
Implementations§
Source§impl ErasedConcatenatePlan
impl ErasedConcatenatePlan
Sourcepub fn compile(
dtype: KernelDType,
input_dims: &[&[usize]],
input_strides: &[&[isize]],
dest_dims: &[usize],
dest_strides: &[isize],
axis: usize,
) -> Result<Self>
pub fn compile( dtype: KernelDType, input_dims: &[&[usize]], input_strides: &[&[isize]], dest_dims: &[usize], dest_strides: &[isize], axis: usize, ) -> Result<Self>
Validate and store a concatenate plan for one dtype and fixed layout set.
pub fn dtype(&self) -> KernelDType
pub fn plan(&self) -> &ConcatenatePlan
Sourcepub fn execute(
&self,
ctx: &ExecContext,
dest: &mut ErasedRawStridedMut<'_>,
inputs: &[ErasedRawStridedRef<'_>],
) -> Result<()>
pub fn execute( &self, ctx: &ExecContext, dest: &mut ErasedRawStridedMut<'_>, inputs: &[ErasedRawStridedRef<'_>], ) -> Result<()>
Execute concatenate into an erased output descriptor.
Sourcepub fn execute_uninit(
&self,
ctx: &ExecContext,
dest: &mut ErasedRawStridedUninitMut<'_>,
inputs: &[ErasedRawStridedPtr<'_>],
) -> Result<()>
pub fn execute_uninit( &self, ctx: &ExecContext, dest: &mut ErasedRawStridedUninitMut<'_>, inputs: &[ErasedRawStridedPtr<'_>], ) -> Result<()>
Execute concatenate as a full overwrite of uninitialized output storage.
On success, every reachable destination slot is fully overwritten;
unreachable holes are neither read nor initialized. Validation errors
are returned before any destination write. A panic during execution
may leave a partially initialized MaybeUninit destination, which is
still safely droppable; no readable value is promised for unwritten
reachable slots.
Trait Implementations§
Source§impl Clone for ErasedConcatenatePlan
impl Clone for ErasedConcatenatePlan
Source§fn clone(&self) -> ErasedConcatenatePlan
fn clone(&self) -> ErasedConcatenatePlan
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 ErasedConcatenatePlan
impl RefUnwindSafe for ErasedConcatenatePlan
impl Send for ErasedConcatenatePlan
impl Sync for ErasedConcatenatePlan
impl Unpin for ErasedConcatenatePlan
impl UnsafeUnpin for ErasedConcatenatePlan
impl UnwindSafe for ErasedConcatenatePlan
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