Apply to speak at TensorFlow World. Deadline April 23rd. Propose talk

tfds.units.size_str

tfds.units.size_str(size_in_bytes)

Defined in core/units.py.

Returns a human readable size string.

If size_in_bytes is None, then returns "?? GiB".

For example size_str(1.5 * tfds.units.GiB) == "1.50 GiB".

Args:

  • size_in_bytes: int or None, the size, in bytes, that we want to format as a human-readable size string.