pub struct GRU { /* private fields */ }Expand description
A Gated Recurrent Unit (GRU) layer.
https://en.wikipedia.org/wiki/Gated_recurrent_unit
Trait Implementations§
source§impl RNN for GRU
impl RNN for GRU
type State = GRUState
source§fn zero_state(&self, batch_dim: i64) -> GRUState
fn zero_state(&self, batch_dim: i64) -> GRUState
A zero state from which the recurrent network is usually initialized.
source§fn step(&self, input: &Tensor, in_state: &GRUState) -> GRUState
fn step(&self, input: &Tensor, in_state: &GRUState) -> GRUState
Applies a single step of the recurrent network. Read more