Help protect the Great Barrier Reef with TensorFlow on Kaggle Join Challenge

tf.keras.layers.StackedRNNCells

TensorFlow 2 version View source on GitHub

Wrapper allowing a stack of RNN cells to behave as a single cell.

Inherits From: Layer

Used to implement efficient stacked RNNs.

cells List of RNN cell instances.

Examples:

cells = [
    keras.layers.LSTMCell(output_dim),
    keras.layers.LSTMCell(output_dim),
    keras.layers.LSTMCell(output_dim),
]

inputs = keras.Input((timesteps, input_dim))
x = keras.layers.RNN(cells)(inputs)

output_size

state_size

Methods

get_initial_state

View source