ray.rllib.offline.json_reader.JsonReader#

class ray.rllib.offline.json_reader.JsonReader(inputs: str | List[str], ioctx: IOContext | None = None)[source]#

Bases: InputReader

Reader object that loads experiences from JSON file chunks.

The input files will be read from in random order.

Methods

__init__

Initializes a JsonReader instance.

read_all_files

Reads through all files and yields one SampleBatchType per line.

tf_input_ops

Returns TensorFlow queue ops for reading inputs from this reader.