ray.rllib.policy.sample_batch.SampleBatch.size_bytes#

SampleBatch.size_bytes() int[source]#

Returns sum over number of bytes of all data buffers.

For numpy arrays, we use .nbytes. For all other value types, we use sys.getsizeof(…).

Returns:

The overall size in bytes of the data buffer (all columns).