pub struct BiLSTMNetworkCache {
pub forward_caches: Vec<Vec<LSTMCellCache>>,
pub backward_caches: Vec<Vec<LSTMCellCache>>,
pub forward_output_masks: Vec<Vec<Option<Array2<f64>>>>,
pub backward_output_masks: Vec<Vec<Option<Array2<f64>>>>,
}Expand description
Cache for bidirectional LSTM forward pass
All vectors are indexed [layer][time] in the original time order.
Fields§
§forward_caches: Vec<Vec<LSTMCellCache>>§backward_caches: Vec<Vec<LSTMCellCache>>§forward_output_masks: Vec<Vec<Option<Array2<f64>>>>§backward_output_masks: Vec<Vec<Option<Array2<f64>>>>Trait Implementations§
Auto Trait Implementations§
impl Freeze for BiLSTMNetworkCache
impl RefUnwindSafe for BiLSTMNetworkCache
impl Send for BiLSTMNetworkCache
impl Sync for BiLSTMNetworkCache
impl Unpin for BiLSTMNetworkCache
impl UnsafeUnpin for BiLSTMNetworkCache
impl UnwindSafe for BiLSTMNetworkCache
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