pub struct LstmState<B, const D: usize>where
B: Backend,{
pub cell: Tensor<B, D>,
pub hidden: Tensor<B, D>,
}Expand description
A LstmState is used to store cell state and hidden state in LSTM.
Fields§
§cell: Tensor<B, D>The cell state.
The hidden state.
Implementations§
Auto Trait Implementations§
impl<B, const D: usize> Freeze for LstmState<B, D>where
<B as BackendTypes>::FloatTensorPrimitive: Freeze,
<B as BackendTypes>::QuantizedTensorPrimitive: Freeze,
impl<B, const D: usize> RefUnwindSafe for LstmState<B, D>where
<B as BackendTypes>::FloatTensorPrimitive: RefUnwindSafe,
<B as BackendTypes>::QuantizedTensorPrimitive: RefUnwindSafe,
impl<B, const D: usize> Send for LstmState<B, D>
impl<B, const D: usize> Sync for LstmState<B, D>
impl<B, const D: usize> Unpin for LstmState<B, D>where
<B as BackendTypes>::FloatTensorPrimitive: Unpin,
<B as BackendTypes>::QuantizedTensorPrimitive: Unpin,
impl<B, const D: usize> UnsafeUnpin for LstmState<B, D>where
<B as BackendTypes>::FloatTensorPrimitive: UnsafeUnpin,
<B as BackendTypes>::QuantizedTensorPrimitive: UnsafeUnpin,
impl<B, const D: usize> UnwindSafe for LstmState<B, D>where
<B as BackendTypes>::FloatTensorPrimitive: UnwindSafe,
<B as BackendTypes>::QuantizedTensorPrimitive: UnwindSafe,
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