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