ray.rllib.offline.io_context.IOContext.default_sampler_input#

IOContext.default_sampler_input() SamplerInput | None[source]#

Returns the RolloutWorker’s SamplerInput object, if any.

Returns None if the RolloutWorker has no SamplerInput. Note that local workers in case there are also one or more remote workers by default do not create a SamplerInput object.

Returns:

The RolloutWorkers’ SamplerInput object or None if none exists.