[RLlib] Config dict should use true instad of True in docs/examples. (#17889)

This commit is contained in:
gjoliver 2021-08-17 02:46:10 -07:00 committed by GitHub
parent 8227e24424
commit 1dbe7fc26a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -423,8 +423,8 @@ Building Policies in TensorFlow Eager
Policies built with ``build_tf_policy`` (most of the reference algorithms are)
can be run in eager mode by setting
the ``"framework": "tf2"`` / ``"eager_tracing": True`` config options or
using ``rllib train '{"framework": "tf2", "eager_tracing": True}'``.
the ``"framework": "tf2"`` / ``"eager_tracing": true`` config options or
using ``rllib train '{"framework": "tf2", "eager_tracing": true}'``.
This will tell RLlib to execute the model forward pass, action distribution,
loss, and stats functions in eager mode.

View file

@ -19,7 +19,7 @@ You can train a simple DQN trainer with the following command:
.. code-block:: bash
rllib train --run DQN --env CartPole-v0 # --config '{"framework": "tf2", "eager_tracing": True}' for eager execution
rllib train --run DQN --env CartPole-v0 # --config '{"framework": "tf2", "eager_tracing": true}' for eager execution
By default, the results will be logged to a subdirectory of ``~/ray_results``.
This subdirectory will contain a file ``params.json`` which contains the
@ -947,7 +947,7 @@ Eager Mode
Policies built with ``build_tf_policy`` (most of the reference algorithms are)
can be run in eager mode by setting the
``"framework": "[tf2|tfe]"`` / ``"eager_tracing": True`` config options or using
``"framework": "[tf2|tfe]"`` / ``"eager_tracing": true`` config options or using
``rllib train --config '{"framework": "tf2"}' [--trace]``.
This will tell RLlib to execute the model forward pass, action distribution,
loss, and stats functions in eager mode.

View file

@ -32,7 +32,7 @@ Then, you can try out training in the following equivalent ways:
.. code-block:: bash
rllib train --run=PPO --env=CartPole-v0 # -v [-vv] for verbose,
# --config='{"framework": "tf2", "eager_tracing": True}' for eager,
# --config='{"framework": "tf2", "eager_tracing": true}' for eager,
# --torch to use PyTorch OR --config='{"framework": "torch"}'
.. code-block:: python