From 50579d8901ea48cd4019336ffde4b7626321d697 Mon Sep 17 00:00:00 2001 From: Dominic Jack Date: Thu, 10 Dec 2020 07:13:03 +1000 Subject: [PATCH] clarified deterministic order independent of num_parallel_calls --- tensorflow/python/data/ops/dataset_ops.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tensorflow/python/data/ops/dataset_ops.py b/tensorflow/python/data/ops/dataset_ops.py index 6698e2ecc50..46af724339a 100644 --- a/tensorflow/python/data/ops/dataset_ops.py +++ b/tensorflow/python/data/ops/dataset_ops.py @@ -1784,11 +1784,11 @@ name=None)) ... num_parallel_calls=tf.data.AUTOTUNE, ... deterministic=False) - If `num_parallel_calls > 1`, the order of elements yielded by this - transformation is deterministic if `deterministic=True`. If `map_func` - contains stateful operations and `num_parallel_calls > 1`, the order in - which that state is accessed is undefined, so the values of output elements - may not be deterministic regardless of the `deterministic` flag value. + The order of elements yielded by this transformation is deterministic if + `deterministic=True`. If `map_func` contains stateful operations and + `num_parallel_calls > 1`, the order in which that state is accessed is + undefined, so the values of output elements may not be deterministic + regardless of the `deterministic` flag value. Args: map_func: A function mapping a dataset element to another dataset element.