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

Method repeat

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

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)

Source from the content-addressed store, hash-verified

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.

Callers 15

build_model_inputFunction · 0.45
build_model_inputFunction · 0.45
build_model_inputFunction · 0.45
build_model_inputFunction · 0.45
build_model_inputFunction · 0.45
build_model_inputFunction · 0.45
build_model_inputFunction · 0.45
build_model_inputFunction · 0.45
build_model_inputFunction · 0.45
build_model_inputFunction · 0.45
mainFunction · 0.45
generate_input_dataFunction · 0.45

Calls 1

RepeatDatasetClass · 0.70

Tested by 15

make_iteratorMethod · 0.36
_create_graphMethod · 0.36
_benchmark_applyMethod · 0.36
_benchmark_trainMethod · 0.36
benchmark_graph_trainMethod · 0.36
make_iteratorMethod · 0.36
benchmark_graph_trainMethod · 0.36
make_iteratorMethod · 0.36