aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Brennan Saeta <saeta@google.com>2017-04-20 12:44:24 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-04-20 14:03:57 -0700
commitdcb1e2166ae4cb321e11644acc9bc909c05446e9 (patch)
tree0ca0fb4a426c6e72c2c7e3504f5c75c3db5906c2
parenta2dac8bd93b0f4bff2554d05efc7385bbcbf8c4e (diff)
Fix const-ness of master_env.
A recent change in grpc_server_lib removed const from the master_session_factory function. This change fixes master_env.h to accurately reflect the new type signature. Change: 153751309
-rw-r--r--tensorflow/core/distributed_runtime/master_env.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/distributed_runtime/master_env.h b/tensorflow/core/distributed_runtime/master_env.h
index 01218fb155..a155bd384d 100644
--- a/tensorflow/core/distributed_runtime/master_env.h
+++ b/tensorflow/core/distributed_runtime/master_env.h
@@ -56,7 +56,7 @@ struct MasterEnv {
// `MasterSession`, which may not be null. Ownership of the
// `MasterEnv*` is retained by the caller.
std::function<MasterSession*(
- const SessionOptions&, MasterEnv*,
+ SessionOptions, MasterEnv*,
std::unique_ptr<std::vector<std::unique_ptr<Device>>>)>
master_session_factory;
};