Make GraphConstructor create nodes in the same order as the GraphDef.
authorSkye Wanderman-Milne <skyewm@google.com>
Thu, 31 May 2018 14:56:56 +0000 (07:56 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Thu, 31 May 2018 14:59:30 +0000 (07:59 -0700)
commita951093889128db4acf4ed80a286ebb2de813241
tree20d0253a63605288919f038de0630d74aa0b370e
parent582f2e61c7219bfbbec21ce087bee9fde26bce7c
Make GraphConstructor create nodes in the same order as the GraphDef.

While technically the order of the created nodes doesn't matter, this
makes viewing and debugging graphs more sensible.

Fixes #19594.

PiperOrigin-RevId: 198721173
tensorflow/compiler/jit/encapsulate_subgraphs_pass_test.cc
tensorflow/contrib/tensorrt/segment/segment_test.cc
tensorflow/core/common_runtime/function_test.cc
tensorflow/core/graph/algorithm_test.cc
tensorflow/core/graph/graph_constructor.cc
tensorflow/core/graph/graph_partition_test.cc
tensorflow/core/graph/optimizer_cse_test.cc