aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/framework/function.h
diff options
context:
space:
mode:
authorGravatar Derek Murray <mrry@google.com>2018-10-10 08:12:24 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-10-10 08:16:27 -0700
commit1ae0a45a5de65ab4ae6def232da016e7ee32773c (patch)
tree1169c6709ed2ae4b99d21f37f5435c6ac82dc978 /tensorflow/core/framework/function.h
parent0bb68afa38cf5c45232e85fb09186e01055e4d11 (diff)
[tf.data] `Dataset.make_one_shot_iterator()` inherits the random seed from the calling graph.
This change makes a subtle difference to the behavior of existing programs that create multiple iterators. Previously, one-shot iterators would not inherit the graph seed, and so their values would be non-deterministic (unless explicit seeds were set). After this change, an iterator will inherit its seed from the outer graph. Multiple one-shot iterators created from the same dataset will inherit different seeds, matching the semantics of creating multiple ops with the same graph seed. PiperOrigin-RevId: 216532256
Diffstat (limited to 'tensorflow/core/framework/function.h')
0 files changed, 0 insertions, 0 deletions