ray.rllib.policy.policy.Policy.get_num_samples_loaded_into_buffer#

Policy.get_num_samples_loaded_into_buffer(buffer_index: int = 0) int[source]#

Returns the number of currently loaded samples in the given buffer.

Parameters:

buffer_index – The index of the buffer (a MultiGPUTowerStack) to use on the devices. The number of buffers on each device depends on the value of the num_multi_gpu_tower_stacks config key.

Returns:

The number of tuples loaded per device.