ray.rllib.offline.json_reader.JsonReader
ray.rllib.offline.json_reader.JsonReader#
- class ray.rllib.offline.json_reader.JsonReader(inputs: Union[str, List[str]], ioctx: Optional[ray.rllib.offline.io_context.IOContext] = None)[source]#
Bases:
ray.rllib.offline.input_reader.InputReader
Reader object that loads experiences from JSON file chunks.
The input files will be read from in random order.
Methods
__init__
(inputs[, ioctx])Initializes a JsonReader instance.
Reads through all files and yields one SampleBatchType per line.
tf_input_ops
([queue_size])Returns TensorFlow queue ops for reading inputs from this reader.