ray.rllib.offline.io_context.IOContext.__init__#

IOContext.__init__(log_dir: str | None = None, config: AlgorithmConfig | None = None, worker_index: int = 0, worker: RolloutWorker | None = None)[source]#

Initializes a IOContext object.

Parameters:
  • log_dir – The logging directory to read from/write to.

  • config – The (main) AlgorithmConfig object.

  • worker_index – When there are multiple workers created, this uniquely identifies the current worker. 0 for the local worker, >0 for any of the remote workers.

  • worker – The RolloutWorker object reference.