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

IOContext.__init__(log_dir: Optional[str] = None, config: Optional[AlgorithmConfig] = None, worker_index: int = 0, worker: Optional[RolloutWorker] = 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.