Repeats this dataset `count` times. NOTE: If this dataset is a function of global state (e.g. a random number generator), then different repetitions may produce different elements. Args: count: (Optional.) A `tf.int64` scalar `tf.Tensor`, representing the number of times
(self, count=None)
| 899 | return dataset |
| 900 | |
| 901 | def repeat(self, count=None): |
| 902 | """Repeats this dataset `count` times. |
| 903 | |
| 904 | NOTE: If this dataset is a function of global state (e.g. a random number |
| 905 | generator), then different repetitions may produce different elements. |
| 906 | |
| 907 | Args: |
| 908 | count: (Optional.) A `tf.int64` scalar `tf.Tensor`, representing the |
| 909 | number of times the dataset should be repeated. The default behavior (if |
| 910 | `count` is `None` or `-1`) is for the dataset be repeated indefinitely. |
| 911 | |
| 912 | Returns: |
| 913 | Dataset: A `Dataset`. |
| 914 | """ |
| 915 | return RepeatDataset(self, count) |
| 916 | |
| 917 | def enumerate(self, start=0): |
| 918 | """Enumerates the elements of this dataset. |