Improve docstring formatting

PiperOrigin-RevId: 294517223
Change-Id: Iba4bef9dcf0b8f597c7cffb8fa57e1d94df9a366
This commit is contained in:
A. Unique TensorFlower 2020-02-11 14:11:16 -08:00 committed by TensorFlower Gardener
parent 4e5860d00c
commit adbd8d31c7

View File

@ -1212,7 +1212,7 @@ class DatasetV2(tracking_base.Trackable, composite_tensor.CompositeTensor):
the cache file is removed or the filename is changed.
>>> dataset = tf.data.Dataset.range(5)
>>> dataset = dataset.cache("/path/to/file) # doctest: +SKIP
>>> dataset = dataset.cache("/path/to/file") # doctest: +SKIP
>>> list(dataset.as_numpy_iterator()) # doctest: +SKIP
[0, 1, 2, 3, 4]
>>> dataset = tf.data.Dataset.range(10)