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