[TF:XLA] Making constant folding deterministic.
authorYunxing Dai <yunxing@google.com>
Mon, 5 Feb 2018 20:15:10 +0000 (12:15 -0800)
committerTensorFlower Gardener <gardener@tensorflow.org>
Mon, 5 Feb 2018 20:19:04 +0000 (12:19 -0800)
commit11167ab9f4a27c0ec65c53698d66c710f0801194
tree347387e576f7646b6e0dc4571cd2abf4758b99a0
parent2eacd726ed2317cb1c0887ed58d4bde935608274
[TF:XLA] Making constant folding deterministic.

Making constant folding deterministic by doing DFS deterministically and inserting a serialization point based on nodes' names.

This is the last source of non-determinism remaining in the TF:XLA stack.

RELNOTES: Constant folding pass is now deterministic.
PiperOrigin-RevId: 184566644
tensorflow/core/common_runtime/constant_folding.cc
tensorflow/core/common_runtime/constant_folding.h
tensorflow/core/common_runtime/constant_folding_test.cc
tensorflow/core/common_runtime/function_test.cc