- Dataset.size_bytes() int #
Return the in-memory size of the dataset.
>>> import ray >>> ds = ray.data.range(10) >>> ds.size_bytes() 80
If this dataset consists of more than a read, then this operation will trigger execution of the lazy transformations performed on this dataset.
Time complexity: O(1)
The in-memory size of the dataset in bytes, or None if the in-memory size is not known.