pub struct LSTMCellCache {Show 13 fields
pub input: Array2<f64>,
pub hx: Array2<f64>,
pub cx: Array2<f64>,
pub gates: Array2<f64>,
pub input_gate: Array2<f64>,
pub forget_gate: Array2<f64>,
pub cell_gate: Array2<f64>,
pub output_gate: Array2<f64>,
pub cy: Array2<f64>,
pub hy: Array2<f64>,
pub input_dropout_mask: Option<Array2<f64>>,
pub recurrent_dropout_mask: Option<Array2<f64>>,
pub output_dropout_mask: Option<Array2<f64>>,
}
Expand description
Caches intermediate values during forward pass for efficient backward computation
Fields§
§input: Array2<f64>
§hx: Array2<f64>
§cx: Array2<f64>
§gates: Array2<f64>
§input_gate: Array2<f64>
§forget_gate: Array2<f64>
§cell_gate: Array2<f64>
§output_gate: Array2<f64>
§cy: Array2<f64>
§hy: Array2<f64>
§input_dropout_mask: Option<Array2<f64>>
§recurrent_dropout_mask: Option<Array2<f64>>
§output_dropout_mask: Option<Array2<f64>>
Trait Implementations§
Source§impl Clone for LSTMCellCache
impl Clone for LSTMCellCache
Source§fn clone(&self) -> LSTMCellCache
fn clone(&self) -> LSTMCellCache
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 moreAuto Trait Implementations§
impl Freeze for LSTMCellCache
impl RefUnwindSafe for LSTMCellCache
impl Send for LSTMCellCache
impl Sync for LSTMCellCache
impl Unpin for LSTMCellCache
impl UnwindSafe for LSTMCellCache
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