pub struct MlLstmOutputCache<const OUT: usize, const IN: usize> { /* private fields */ }Implementations§
Source§impl<const OUT: usize, const IN: usize> MlLstmOutputCache<OUT, IN>
impl<const OUT: usize, const IN: usize> MlLstmOutputCache<OUT, IN>
Sourcepub fn calc_output_error(
&self,
train_out: &MathVec<OUT>,
output_error: &mut MathVec<OUT>,
)
pub fn calc_output_error( &self, train_out: &MathVec<OUT>, output_error: &mut MathVec<OUT>, )
Calculates output error.
| Formula |
|---|
train_out: Correct output.output_error: Buffer for output error.
Sourcepub fn o_gate_cache(&self) -> &MlCache<OUT, IN>
pub fn o_gate_cache(&self) -> &MlCache<OUT, IN>
Gets cache of output gate.
- Return : Cache of output gate.
Sourcepub fn tanh_s(&self) -> &MathVec<OUT>
pub fn tanh_s(&self) -> &MathVec<OUT>
Gets output of tanh(state).
- Return : Output of tanh(state).
Trait Implementations§
Source§impl<const OUT: usize, const IN: usize> Clone for MlLstmOutputCache<OUT, IN>
impl<const OUT: usize, const IN: usize> Clone for MlLstmOutputCache<OUT, IN>
Source§fn clone(&self) -> MlLstmOutputCache<OUT, IN>
fn clone(&self) -> MlLstmOutputCache<OUT, IN>
Returns a duplicate 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 moreimpl<const OUT: usize, const IN: usize> StructuralPartialEq for MlLstmOutputCache<OUT, IN>
Auto Trait Implementations§
impl<const OUT: usize, const IN: usize> Freeze for MlLstmOutputCache<OUT, IN>
impl<const OUT: usize, const IN: usize> RefUnwindSafe for MlLstmOutputCache<OUT, IN>
impl<const OUT: usize, const IN: usize> Send for MlLstmOutputCache<OUT, IN>
impl<const OUT: usize, const IN: usize> Sync for MlLstmOutputCache<OUT, IN>
impl<const OUT: usize, const IN: usize> Unpin for MlLstmOutputCache<OUT, IN>
impl<const OUT: usize, const IN: usize> UnwindSafe for MlLstmOutputCache<OUT, IN>
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