aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/distributed_runtime/master_session.h
diff options
context:
space:
mode:
authorGravatar Suharsh Sivakumar <suharshs@google.com>2017-04-28 17:44:46 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-04-28 19:12:47 -0700
commitdae9329b0adb1628cd9665543da0c96f7a1fcbce (patch)
treedd49ecf0a6f84cf40b374aa718dbc50ab5440e69 /tensorflow/core/distributed_runtime/master_session.h
parentad3c84b58bb42c87ae8f38b81f75447afcc86d5f (diff)
Distinguish between duplicate feed/fetch and unspecified feed/fetch errors.
Change: 154606429
Diffstat (limited to 'tensorflow/core/distributed_runtime/master_session.h')
-rw-r--r--tensorflow/core/distributed_runtime/master_session.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/tensorflow/core/distributed_runtime/master_session.h b/tensorflow/core/distributed_runtime/master_session.h
index c593f84f03..ee1a340c8e 100644
--- a/tensorflow/core/distributed_runtime/master_session.h
+++ b/tensorflow/core/distributed_runtime/master_session.h
@@ -141,8 +141,8 @@ class MasterSession : public core::RefCounted {
};
struct RunState {
- std::unordered_set<string> pending_inputs;
- std::unordered_set<string> pending_outputs;
+ std::unordered_map<string, bool> pending_inputs; // true if fed
+ std::unordered_map<string, bool> pending_outputs; // true if fetched
ReffedClientGraph* rcg = nullptr;
uint64 step_id;
int64 count = 0;
@@ -154,6 +154,8 @@ class MasterSession : public core::RefCounted {
const std::vector<string>& output_names, ReffedClientGraph* rcg,
const uint64 step_id, const int64 count);
+ bool PendingDone() const;
+
~RunState();
};
std::unordered_map<string, std::unique_ptr<RunState>> partial_runs_