Creates a `Dataset` that skips `count` elements from this dataset. Args: count: A `tf.int64` scalar `tf.Tensor`, representing the number of elements of this dataset that should be skipped to form the new dataset. If `count` is greater than the size of this dataset, the new
(self, count)
| 1001 | return TakeDataset(self, count) |
| 1002 | |
| 1003 | def skip(self, count): |
| 1004 | """Creates a `Dataset` that skips `count` elements from this dataset. |
| 1005 | |
| 1006 | Args: |
| 1007 | count: A `tf.int64` scalar `tf.Tensor`, representing the number of |
| 1008 | elements of this dataset that should be skipped to form the new dataset. |
| 1009 | If `count` is greater than the size of this dataset, the new dataset |
| 1010 | will contain no elements. If `count` is -1, skips the entire dataset. |
| 1011 | |
| 1012 | Returns: |
| 1013 | Dataset: A `Dataset`. |
| 1014 | """ |
| 1015 | return SkipDataset(self, count) |
| 1016 | |
| 1017 | def shard(self, num_shards, index): |
| 1018 | """Creates a `Dataset` that includes only 1/`num_shards` of this dataset. |