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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-26 UTC."],[],[]]