Module: tf_agents.keras_layers.dynamic_unroll_layer
Stay organized with collections
Save and categorize content based on your preferences.
Tensorflow RL Agent RNN utilities.
This module provides helper functions that Agents can use to train
RNN-based policies.
DynamicUnroll
The layer DynamicUnroll
allows an Agent to train an RNN-based policy
by running an RNN over a batch of episode chunks from a replay buffer.
The agent creates a subclass of tf.contrib.rnn.LayerRNNCell
or a Keras RNN
cell, such as tf.keras.layers.LSTMCell
, instances of which
which can themselves be wrappers of RNNCell
. Training this instance
involes passing it to DynamicUnroll
constructor; and then pass a set of
episode tensors in the form of inputs
.
See the unit tests in rnn_utils_test.py
for more details.
Classes
class DynamicUnroll
: Process a history of sequences that are concatenated without padding.
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.dynamic_unroll_layer\n\n\u003cbr /\u003e\n\n|---------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/agents/blob/v0.19.0/tf_agents/keras_layers/dynamic_unroll_layer.py) |\n\nTensorflow RL Agent RNN utilities.\n\nThis module provides helper functions that Agents can use to train\nRNN-based policies.\n\n`DynamicUnroll`\n\nThe layer `DynamicUnroll` allows an Agent to train an RNN-based policy\nby running an RNN over a batch of episode chunks from a replay buffer.\n\nThe agent creates a subclass of `tf.contrib.rnn.LayerRNNCell` or a Keras RNN\ncell, such as [`tf.keras.layers.LSTMCell`](https://www.tensorflow.org/api_docs/python/tf/keras/layers/LSTMCell), instances of which\nwhich can themselves be wrappers of `RNNCell`. Training this instance\ninvoles passing it to `DynamicUnroll` constructor; and then pass a set of\nepisode tensors in the form of `inputs`.\n\nSee the unit tests in `rnn_utils_test.py` for more details.\n\nClasses\n-------\n\n[`class DynamicUnroll`](../../tf_agents/keras_layers/DynamicUnroll): Process a history of sequences that are concatenated without padding."]]