RecurrentLayers.IndRNNCell
— TypeIndRNNCell((input_size => hidden_size)::Pair, σ=relu;
+rancell(inp)
Arguments
inp
: The input to the rancell. It should be a vector of sizeinput_size
or a matrix of sizeinput_size x batch_size
.(state, cstate)
: A tuple containing the hidden and cell states of the RANCell. They should be vectors of sizehidden_size
or matrices of sizehidden_size x batch_size
. If not provided, they are assumed to be vectors of zeros, initialized byFlux.initialstates
.
Returns
- A tuple
(output, state)
, whereoutput = new_state
is the new hidden state andstate = (new_state, new_cstate)
is the new hidden and cell state. They are tensors of sizehidden_size
orhidden_size x batch_size
.