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

Function sleep

tensorflow/python/data/experimental/ops/sleep.py:37–52  ·  view source on GitHub ↗

Sleeps for `sleep_microseconds` before producing each input element. Args: sleep_microseconds: The number of microseconds to sleep before producing an input element. Returns: A `Dataset` transformation function, which can be passed to `tf.data.Dataset.apply`.

(sleep_microseconds)

Source from the content-addressed store, hash-verified

35
36
37def sleep(sleep_microseconds):
38 """Sleeps for `sleep_microseconds` before producing each input element.
39
40 Args:
41 sleep_microseconds: The number of microseconds to sleep before producing an
42 input element.
43
44 Returns:
45 A `Dataset` transformation function, which can be passed to
46 `tf.data.Dataset.apply`.
47 """
48
49 def _apply_fn(dataset):
50 return _SleepDataset(dataset, sleep_microseconds)
51
52 return _apply_fn

Callers 15

mainFunction · 0.85
InitMethod · 0.85
WorkLoopMethod · 0.85
LockOrWaitFunction · 0.85
ClearLoopMethod · 0.85
startMethod · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85
OptimizeMethod · 0.85
CloseSessionMethod · 0.85
TESTFunction · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by 9

mainFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68
OptimizeMethod · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
TestCompactionFunction · 0.68
TestReadEmbFileFunction · 0.68
RemoveKeyFunction · 0.68