pub struct WriteSliceArgs<'a, T: DeviceRepr + Copy + 'static, const N: usize> {
pub dest: TensorMut<'a, T, N>,
pub source: TensorRef<'a, T, N>,
}Expand description
Args bundle for a write_slice launch.
dest is mutated in place. source is read once. Both must be
contiguous row-major with zero offset relative to their backing
device buffer (Fuel’s plan layer materializes strided / offset
inputs upstream via Contiguize).
Fields§
§dest: TensorMut<'a, T, N>Destination tensor — written in the per-axis range window. Bytes outside the window are untouched.
source: TensorRef<'a, T, N>Source tensor — same dtype as dest, shape == slab extent.
Auto Trait Implementations§
impl<'a, T, const N: usize> !UnwindSafe for WriteSliceArgs<'a, T, N>
impl<'a, T, const N: usize> Freeze for WriteSliceArgs<'a, T, N>
impl<'a, T, const N: usize> RefUnwindSafe for WriteSliceArgs<'a, T, N>where
T: RefUnwindSafe,
impl<'a, T, const N: usize> Send for WriteSliceArgs<'a, T, N>
impl<'a, T, const N: usize> Sync for WriteSliceArgs<'a, T, N>where
T: Sync,
impl<'a, T, const N: usize> Unpin for WriteSliceArgs<'a, T, N>
impl<'a, T, const N: usize> UnsafeUnpin for WriteSliceArgs<'a, T, 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