pub struct Arg<'a, S> { /* private fields */ }Expand description
One operand of a launch, being described; S says whether its axes are stated yet.
Implementations§
Source§impl<'a> Arg<'a, Unlabelled>
impl<'a> Arg<'a, Unlabelled>
Sourcepub fn axes(self, axes: &'a [Axis]) -> Arg<'a, Labelled>
pub fn axes(self, axes: &'a [Axis]) -> Arg<'a, Labelled>
The axes the operand’s trailing buffer dims carry.
Sourcepub fn gathered(self, projection: Projection) -> Arg<'a, Labelled>
pub fn gathered(self, projection: Projection) -> Arg<'a, Labelled>
An explicit affine Projection for a gathered operand. Overruns past the buffer’s tail
are not detected; a gather that overruns must state BoundaryPolicy::Every.
Source§impl<'a> Arg<'a, Labelled>
impl<'a> Arg<'a, Labelled>
Sourcepub fn batches(self, axes: &'a [Axis]) -> Self
pub fn batches(self, axes: &'a [Axis]) -> Self
The batch axes in the output’s order, right-aligned to the leading dims (numpy broadcast).
Sourcepub fn in_stride_order(self) -> Self
pub fn in_stride_order(self) -> Self
Bind the labelled dims in the order they step, coarsest first; batch dims stay put.
Sourcepub fn vectorize(self, width: usize) -> Self
pub fn vectorize(self, width: usize) -> Self
Serve the innermost axis in width-wide lines; that axis must be contiguous.
Sourcepub fn boundary(self, policy: BoundaryPolicy) -> Self
pub fn boundary(self, policy: BoundaryPolicy) -> Self
How this operand’s edges are checked.
Sourcepub fn packed(self, field: impl Into<Field>) -> Self
pub fn packed(self, field: impl Into<Field>) -> Self
This operand’s values are field-wide fields of a stored word.
Sourcepub fn delivery(self, delivery: Delivery) -> Self
pub fn delivery(self, delivery: Delivery) -> Self
Who moves this operand into a stage (SyncPerUnit unless
stated); the kernel is the same either way.
Auto Trait Implementations§
impl<'a, S> !RefUnwindSafe for Arg<'a, S>
impl<'a, S> !UnwindSafe for Arg<'a, S>
impl<'a, S> Freeze for Arg<'a, S>where
PhantomData<S>: Freeze,
impl<'a, S> Send for Arg<'a, S>where
PhantomData<S>: Send,
impl<'a, S> Sync for Arg<'a, S>where
PhantomData<S>: Sync,
impl<'a, S> Unpin for Arg<'a, S>where
PhantomData<S>: Unpin,
impl<'a, S> UnsafeUnpin for Arg<'a, S>where
PhantomData<S>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more