mirror of
https://github.com/wassname/ray.git
synced 2026-07-08 03:30:19 +08:00
[rllib] Replace ray.get() with ray_get_and_free() to optimize memory usage (#4586)
This commit is contained in:
@@ -108,7 +108,7 @@ This is how the example in the previous section looks when written using a polic
|
||||
Trainers
|
||||
--------
|
||||
|
||||
Trainers are the boilerplate classes that put the above components together. Trainer make algorithms accessible via Python API and the command line. They manage algorithm configuration, setup of the policy evaluators and optimizer, and collection of training metrics. Trainers also implement the `Trainable API <https://ray.readthedocs.io/en/latest/tune-usage.html#training-api>`__ for easy experiment management.
|
||||
Trainers are the boilerplate classes that put the above components together, making algorithms accessible via Python API and the command line. They manage algorithm configuration, setup of the policy evaluators and optimizer, and collection of training metrics. Trainers also implement the `Trainable API <https://ray.readthedocs.io/en/latest/tune-usage.html#training-api>`__ for easy experiment management.
|
||||
|
||||
Example of two equivalent ways of interacting with the PPO trainer:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user