ray.data.Dataset.size_bytes#

Dataset.size_bytes() int[source]#

Return the in-memory size of the dataset.

Time complexity: O(1)

Returns

The in-memory size of the dataset in bytes, or None if the in-memory size is not known.