pub struct Tanh {}Implementations§
Trait Implementations§
Source§impl Node for Tanh
impl Node for Tanh
fn call(&self, input: Vec<Tensor>) -> Tensor
fn backward( &mut self, grad: &Tensor, inputs: Vec<&Tensor>, output: &Tensor, ) -> Vec<Tensor>
fn no_grad(&self) -> bool
fn has_params(&self) -> bool
fn apply_update(&mut self, _update: Vec<Tensor>)
fn load_param(&mut self, _file: PathBuf) -> Result<()>
fn save_param(&self, _file: PathBuf) -> Result<()>
fn pull_grad(&self) -> Option<Vec<&Tensor>>
fn print(&self)
Auto Trait Implementations§
impl Freeze for Tanh
impl RefUnwindSafe for Tanh
impl Send for Tanh
impl Sync for Tanh
impl Unpin for Tanh
impl UnsafeUnpin for Tanh
impl UnwindSafe for Tanh
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