From a41f003d373323ac7f0b138305c60960b12fd0fb Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Tue, 18 Jun 2019 18:02:53 -0700 Subject: [PATCH] Fix internal breakage. PiperOrigin-RevId: 253907570 --- tensorflow/core/distributed_runtime/worker_session.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tensorflow/core/distributed_runtime/worker_session.cc b/tensorflow/core/distributed_runtime/worker_session.cc index db01edb29d3..f9d287e6c73 100644 --- a/tensorflow/core/distributed_runtime/worker_session.cc +++ b/tensorflow/core/distributed_runtime/worker_session.cc @@ -21,8 +21,9 @@ namespace tensorflow { namespace { -auto* session_created = monitoring::Gauge::New( - "/tensorflow/core/session_created", "True if a session was created."); +auto* worker_session_created = + monitoring::Gauge::New("/tensorflow/core/worker_session_created", + "True if a worker session was created."); // A private cache that wraps worker_cache and allows reuse of // WorkerInterface objects. @@ -117,7 +118,7 @@ WorkerSession::WorkerSession(const string& session_name, // Starts exporting metrics through a platform-specific monitoring API (if // provided). For builds using "tensorflow/core/platform/default", this is // currently a no-op. - session_created->GetCell()->Set(true); + worker_session_created->GetCell()->Set(true); monitoring::StartExporter(); } @@ -150,7 +151,7 @@ WorkerSession::WorkerSession(const string& session_name, // Starts exporting metrics through a platform-specific monitoring API (if // provided). For builds using "tensorflow/core/platform/default", this is // currently a no-op. - session_created->GetCell()->Set(true); + worker_session_created->GetCell()->Set(true); monitoring::StartExporter(); }