ray.data.Dataset.size_bytes#

Dataset.size_bytes() int[source]#

Return the in-memory size of the dataset.

Note

If this dataset consists of more than a read, then this operation will trigger execution of the lazy transformations performed on this dataset, and will block until execution completes.

Time complexity: O(1)

Returns

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