2021-12-10 09:41:29 +01:00
.. _rolloutworker-reference-docs:
RolloutWorker
=============
RolloutWorkers are used as `` @ray.remote `` actors to collect and return samples
2022-06-11 15:10:39 +02:00
from environments or offline files in parallel. An RLlib :py:class: `~ray.rllib.algorithms.algorithm.Algorithm` usually has
2021-12-10 09:41:29 +01:00
`` num_workers `` :py:class: `~ray.rllib.evaluation.rollout_worker.RolloutWorker` s plus a
single "local" :py:class: `~ray.rllib.evaluation.rollout_worker.RolloutWorker` (not `` @ray.remote `` ) in
its :py:class: `~ray.rllib.evaluation.worker_set.WorkerSet` under `` self.workers `` .
Depending on its evaluation config settings, an additional :py:class: `~ray.rllib.evaluation.worker_set.WorkerSet` with
2022-06-11 15:10:39 +02:00
:py:class: `~ray.rllib.evaluation.rollout_worker.RolloutWorker` s for evaluation may be present in the :py:class: `~ray.rllib.algorithms.algorithm.Algorithm`
2021-12-10 09:41:29 +01:00
under `` self.evaluation_workers `` .
.. autoclass :: ray.rllib.evaluation.rollout_worker.RolloutWorker
:special-members: __init__
:members: