pub struct GRUCellCache {
pub input: Array2<f64>,
pub hx: Array2<f64>,
pub reset_gate: Array2<f64>,
pub update_gate: Array2<f64>,
pub new_gate: Array2<f64>,
pub reset_hidden: 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>
§reset_gate: Array2<f64>
§update_gate: Array2<f64>
§new_gate: 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 GRUCellCache
impl Clone for GRUCellCache
Source§fn clone(&self) -> GRUCellCache
fn clone(&self) -> GRUCellCache
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 GRUCellCache
impl RefUnwindSafe for GRUCellCache
impl Send for GRUCellCache
impl Sync for GRUCellCache
impl Unpin for GRUCellCache
impl UnwindSafe for GRUCellCache
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