pub struct Take;
Trait Implementations§
Source§impl ComputeFnVTable for Take
impl ComputeFnVTable for Take
Source§fn invoke(
&self,
args: &InvocationArgs<'_>,
kernels: &[ArcRef<dyn Kernel>],
) -> VortexResult<Output>
fn invoke( &self, args: &InvocationArgs<'_>, kernels: &[ArcRef<dyn Kernel>], ) -> VortexResult<Output>
Invokes the compute function entry-point with the given input arguments and options. Read more
Source§fn return_dtype(&self, args: &InvocationArgs<'_>) -> VortexResult<DType>
fn return_dtype(&self, args: &InvocationArgs<'_>) -> VortexResult<DType>
Computes the return type of the function given the input arguments. Read more
Source§fn return_len(&self, args: &InvocationArgs<'_>) -> VortexResult<usize>
fn return_len(&self, args: &InvocationArgs<'_>) -> VortexResult<usize>
Computes the return length of the function given the input arguments. Read more
Source§fn is_elementwise(&self) -> bool
fn is_elementwise(&self) -> bool
Returns whether the function operates elementwise, i.e. the output is the same shape as the
input and no information is shared between elements. Read more
Auto Trait Implementations§
impl Freeze for Take
impl RefUnwindSafe for Take
impl Send for Take
impl Sync for Take
impl Unpin for Take
impl UnwindSafe for Take
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
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