diff options
author | James Keeling <jtkeeling@google.com> | 2018-09-13 06:52:12 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-09-13 06:57:02 -0700 |
commit | 46aa7cf45c62d193f56f55d7d2ffc5baf7af3b65 (patch) | |
tree | 3324925c40262bfc8cf110684a91d41bceeed881 | |
parent | 5f28bab20d303e9f815bbe8611c24b7f751e6f9e (diff) |
Replace iter->second with partition_graph in DirectSession::Run
This loop uses an iterator. It takes references to iter->first and iter->second right at the top of the loop and uses these references throughout, except for this line, which I've fixed.
PiperOrigin-RevId: 212805731
-rw-r--r-- | tensorflow/core/common_runtime/direct_session.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/common_runtime/direct_session.cc b/tensorflow/core/common_runtime/direct_session.cc index eb388202fa..b4d8e285bd 100644 --- a/tensorflow/core/common_runtime/direct_session.cc +++ b/tensorflow/core/common_runtime/direct_session.cc @@ -1228,7 +1228,7 @@ Status DirectSession::CreateExecutors( } }; - optimizer.Optimize(lib, options_.env, device, &iter->second, + optimizer.Optimize(lib, options_.env, device, &partition_graph, /*shape_map=*/nullptr); // TensorFlow Debugger (tfdbg) inserts debug nodes in the graph. |