Struct rai_core::primitives::Negative
source · pub struct Negative;
Trait Implementations§
source§impl PartialEq for Negative
impl PartialEq for Negative
source§impl Primitive for Negative
impl Primitive for Negative
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 Negative
impl StructuralPartialEq for Negative
Auto Trait Implementations§
impl Freeze for Negative
impl RefUnwindSafe for Negative
impl Send for Negative
impl Sync for Negative
impl Unpin for Negative
impl UnwindSafe for Negative
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