pub struct LstmOutput {
pub y: Tensor,
pub y_h: Tensor,
pub y_c: Tensor,
}Expand description
Output of an LSTM forward pass.
Fields§
§y: TensorAll hidden states: [seq_length, num_directions, batch, hidden_size]
y_h: TensorFinal hidden state: [num_directions, batch, hidden_size]
y_c: TensorFinal cell state: [num_directions, batch, hidden_size]
Auto Trait Implementations§
impl Freeze for LstmOutput
impl !RefUnwindSafe for LstmOutput
impl Send for LstmOutput
impl Sync for LstmOutput
impl Unpin for LstmOutput
impl UnsafeUnpin for LstmOutput
impl !UnwindSafe for LstmOutput
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more