Struct rai_core::primitives::ToContiguous
source · pub struct ToContiguous;
Trait Implementations§
source§impl Clone for ToContiguous
impl Clone for ToContiguous
source§fn clone(&self) -> ToContiguous
fn clone(&self) -> ToContiguous
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ToContiguous
impl Debug for ToContiguous
source§impl<D: Device> Eval<D, ToContiguous> for CandleBackend
impl<D: Device> Eval<D, ToContiguous> for CandleBackend
source§impl PartialEq for ToContiguous
impl PartialEq for ToContiguous
source§fn eq(&self, other: &ToContiguous) -> bool
fn eq(&self, other: &ToContiguous) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Primitive for ToContiguous
impl Primitive for ToContiguous
fn clone_boxed(&self) -> Box<dyn Primitive>
fn as_any(&self) -> &dyn Any
fn jvp( &self, _output: &Tensor, _primals: &[Tensor], tangents: &[Tensor] ) -> Tensor
fn vjp( &self, _output: &Tensor, _primals: &[Tensor], cotangent: &Tensor ) -> Vec<Tensor>
fn dot_label(&self) -> String
impl Eq for ToContiguous
impl StructuralPartialEq for ToContiguous
Auto Trait Implementations§
impl Freeze for ToContiguous
impl RefUnwindSafe for ToContiguous
impl Send for ToContiguous
impl Sync for ToContiguous
impl Unpin for ToContiguous
impl UnwindSafe for ToContiguous
Blanket Implementations§
source§impl<T, M> ApplyModule<M> for Twhere
M: Module<Input = T>,
impl<T, M> ApplyModule<M> for Twhere
M: Module<Input = T>,
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> 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