diff options
author | Derek Murray <mrry@google.com> | 2018-10-10 08:12:24 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-10-10 08:16:27 -0700 |
commit | 1ae0a45a5de65ab4ae6def232da016e7ee32773c (patch) | |
tree | 1169c6709ed2ae4b99d21f37f5435c6ac82dc978 /tensorflow/core/common_runtime/function.cc | |
parent | 0bb68afa38cf5c45232e85fb09186e01055e4d11 (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/common_runtime/function.cc')
0 files changed, 0 insertions, 0 deletions