pub struct PadArgs<'a, T: Element, const N: usize> {
pub x: TensorRef<'a, T, N>,
pub y: TensorMut<'a, T, N>,
}Expand description
Args bundle for a Pad launch.
x.shape must match desc.input_shape. y.shape must match the
output shape derived from descriptor (input_shape + pad_low + pad_high per axis). Both can be strided views — the kernel walks
per-axis strides.
Fields§
§x: TensorRef<'a, T, N>Input tensor.
y: TensorMut<'a, T, N>Output tensor — larger than input by the configured pad amounts.
Auto Trait Implementations§
impl<'a, T, const N: usize> !UnwindSafe for PadArgs<'a, T, N>
impl<'a, T, const N: usize> Freeze for PadArgs<'a, T, N>
impl<'a, T, const N: usize> RefUnwindSafe for PadArgs<'a, T, N>where
T: RefUnwindSafe,
impl<'a, T, const N: usize> Send for PadArgs<'a, T, N>
impl<'a, T, const N: usize> Sync for PadArgs<'a, T, N>where
T: Sync,
impl<'a, T, const N: usize> Unpin for PadArgs<'a, T, N>
impl<'a, T, const N: usize> UnsafeUnpin for PadArgs<'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