@@ -1808,11 +1808,12 @@ def map(self, map_func, num_parallel_calls=None, deterministic=None):
1808
1808
If not specified, elements will be processed sequentially. If the value
1809
1809
`tf.data.AUTOTUNE` is used, then the number of parallel
1810
1810
calls is set dynamically based on available CPU.
1811
- deterministic: (Optional.) A boolean controlling whether determinism
1812
- should be traded for performance by allowing elements to be yielded out
1813
- of order. If `deterministic` is `None`, the
1814
- `tf.data.Options.experimental_deterministic` dataset option (`True` by
1815
- default) is used to decide whether to run deterministically.
1811
+ deterministic: (Optional.) When `num_parallel_calls` is specified, this
1812
+ boolean controls the order in which the transformation produces
1813
+ elements. If set to `False`, the transformation is allowed to yield
1814
+ elements out of order to trade determinism for performance. If not
1815
+ specified, the `tf.data.Options.experimental_deterministic` option
1816
+ (`True` by default) controls the behavior.
1816
1817
1817
1818
Returns:
1818
1819
Dataset: A `Dataset`.
@@ -1937,11 +1938,12 @@ def interleave(self,
1937
1938
from cycle elements synchronously with no parallelism. If the value
1938
1939
`tf.data.AUTOTUNE` is used, then the number of parallel
1939
1940
calls is set dynamically based on available CPU.
1940
- deterministic: (Optional.) A boolean controlling whether determinism
1941
- should be traded for performance by allowing elements to be produced out
1942
- of order. If `deterministic` is `None`, the
1943
- `tf.data.Options.experimental_deterministic` dataset option (`True` by
1944
- default) is used to decide whether to run deterministically.
1941
+ deterministic: (Optional.) When `num_parallel_calls` is specified, this
1942
+ boolean controls the order in which the transformation produces
1943
+ elements. If set to `False`, the transformation is allowed to yield
1944
+ elements out of order to trade determinism for performance. If not
1945
+ specified, the `tf.data.Options.experimental_deterministic` option
1946
+ (`True` by default) controls the behavior.
1945
1947
1946
1948
Returns:
1947
1949
Dataset: A `Dataset`.
@@ -2673,12 +2675,12 @@ def map_with_legacy_function(self,
2673
2675
If not specified, elements will be processed sequentially. If the value
2674
2676
`tf.data.AUTOTUNE` is used, then the number of parallel
2675
2677
calls is set dynamically based on available CPU.
2676
- deterministic: (Optional.) A boolean controlling whether determinism
2677
- should be traded for performance by allowing elements to be produced out
2678
- of order. If `deterministic` is `None `, the
2679
- `tf.data.Options.experimental_deterministic` dataset option (`True` by
2680
- default) is used to decide whether to produce elements
2681
- deterministically .
2678
+ deterministic: (Optional.) When `num_parallel_calls` is specified, this
2679
+ boolean controls the order in which the transformation produces
2680
+ elements. If set to `False `, the transformation is allowed to yield
2681
+ elements out of order to trade determinism for performance. If not
2682
+ specified, the `tf.data.Options.experimental_deterministic` option
2683
+ (`True` by default) controls the behavior .
2682
2684
2683
2685
Returns:
2684
2686
Dataset: A `Dataset`.
0 commit comments