MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / skip

Method skip

tensorflow/python/data/ops/dataset_ops.py:1003–1015  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 15

fnMethod · 0.45
testOptimizationMethod · 0.45
testSkipInputsMethod · 0.45
do_testMethod · 0.45
skipMethod · 0.45
testGetSingleElementMethod · 0.45
_build_skip_datasetMethod · 0.45
flat_map_fnMethod · 0.45
testNoopEliminationMethod · 0.45

Calls 1

SkipDatasetClass · 0.70

Tested by 10

fnMethod · 0.36
testOptimizationMethod · 0.36
testSkipInputsMethod · 0.36
do_testMethod · 0.36
testGetSingleElementMethod · 0.36
_build_skip_datasetMethod · 0.36
flat_map_fnMethod · 0.36
testNoopEliminationMethod · 0.36