Module: tf_agents.keras_layers
Stay organized with collections
Save and categorize content based on your preferences.
Keras Layers Module.
Modules
bias_layer
module: Keras layer mirroring tf.contrib.layers.bias_add.
dynamic_unroll_layer
module: Tensorflow RL Agent RNN utilities.
inner_reshape
module: Keras layer to reshape inner dimensions (keeping outer dimensions the same).
permanent_variable_rate_dropout
module: A keras layer that applies dropout both in training and serving.
rnn_wrapper
module: Wrapper for tf.keras.layers.RNN subclasses.
squashed_outer_wrapper
module: SquashedOuterWrapper Keras Layer.
Classes
class BiasLayer
: Keras layer that only adds a bias to the input.
class DynamicUnroll
: Process a history of sequences that are concatenated without padding.
class RNNWrapper
: Wraps a Keras RNN/LSTM/GRU layer to make network state more consistent.
class SquashedOuterWrapper
: Squash the outer dimensions of input tensors; unsquash outputs.
Functions
InnerReshape(...)
: Returns a Keras layer that reshapes the inner dimensions of tensors.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-04-26 UTC.
[null,null,["Last updated 2024-04-26 UTC."],[],[],null,["# Module: tf_agents.keras_layers\n\n\u003cbr /\u003e\n\n|---------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/agents/blob/v0.19.0/tf_agents/keras_layers/__init__.py) |\n\nKeras Layers Module.\n\nModules\n-------\n\n[`bias_layer`](../tf_agents/keras_layers/bias_layer) module: Keras layer mirroring tf.contrib.layers.bias_add.\n\n[`dynamic_unroll_layer`](../tf_agents/keras_layers/dynamic_unroll_layer) module: Tensorflow RL Agent RNN utilities.\n\n[`inner_reshape`](../tf_agents/keras_layers/inner_reshape) module: Keras layer to reshape inner dimensions (keeping outer dimensions the same).\n\n[`permanent_variable_rate_dropout`](../tf_agents/keras_layers/permanent_variable_rate_dropout) module: A keras layer that applies dropout both in training and serving.\n\n[`rnn_wrapper`](../tf_agents/keras_layers/rnn_wrapper) module: Wrapper for tf.keras.layers.RNN subclasses.\n\n[`squashed_outer_wrapper`](../tf_agents/keras_layers/squashed_outer_wrapper) module: SquashedOuterWrapper Keras Layer.\n\nClasses\n-------\n\n[`class BiasLayer`](../tf_agents/keras_layers/BiasLayer): Keras layer that only adds a bias to the input.\n\n[`class DynamicUnroll`](../tf_agents/keras_layers/DynamicUnroll): Process a history of sequences that are concatenated without padding.\n\n[`class RNNWrapper`](../tf_agents/keras_layers/RNNWrapper): Wraps a Keras RNN/LSTM/GRU layer to make network state more consistent.\n\n[`class SquashedOuterWrapper`](../tf_agents/keras_layers/SquashedOuterWrapper): Squash the outer dimensions of input tensors; unsquash outputs.\n\nFunctions\n---------\n\n[`InnerReshape(...)`](../tf_agents/keras_layers/InnerReshape): Returns a Keras layer that reshapes the inner dimensions of tensors."]]