# Module: tf_agents.keras_layers

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/agents/blob/v0.19.0/tf_agents/keras_layers/__init__.py) |

Keras Layers Module.

## Modules

[`bias_layer`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/keras_layers/bias_layer) module: Keras layer mirroring tf.contrib.layers.bias_add.

[`dynamic_unroll_layer`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/keras_layers/dynamic_unroll_layer) module: Tensorflow RL Agent RNN utilities.

[`inner_reshape`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/keras_layers/inner_reshape) module: Keras layer to reshape inner dimensions (keeping outer dimensions the same).

[`permanent_variable_rate_dropout`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/keras_layers/permanent_variable_rate_dropout) module: A keras layer that applies dropout both in training and serving.

[`rnn_wrapper`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/keras_layers/rnn_wrapper) module: Wrapper for tf.keras.layers.RNN subclasses.

[`squashed_outer_wrapper`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/keras_layers/squashed_outer_wrapper) module: SquashedOuterWrapper Keras Layer.

## Classes

[`class BiasLayer`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/keras_layers/BiasLayer): Keras layer that only adds a bias to the input.

[`class DynamicUnroll`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/keras_layers/DynamicUnroll): Process a history of sequences that are concatenated without padding.

[`class RNNWrapper`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/keras_layers/RNNWrapper): Wraps a Keras RNN/LSTM/GRU layer to make network state more consistent.

[`class SquashedOuterWrapper`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/keras_layers/SquashedOuterWrapper): Squash the outer dimensions of input tensors; unsquash outputs.

## Functions

[`InnerReshape(...)`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/keras_layers/InnerReshape): Returns a Keras layer that reshapes the inner dimensions of tensors.