aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--tensorflow/core/distributed_runtime/worker_cache_logger.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/distributed_runtime/worker_cache_logger.h b/tensorflow/core/distributed_runtime/worker_cache_logger.h
index aed7047203..a92590a176 100644
--- a/tensorflow/core/distributed_runtime/worker_cache_logger.h
+++ b/tensorflow/core/distributed_runtime/worker_cache_logger.h
@@ -62,7 +62,7 @@ class WorkerCacheLogger {
private:
mutex count_mu_;
- int32 want_logging_count_ GUARDED_BY(count_mu_);
+ int32 want_logging_count_ GUARDED_BY(count_mu_) = 0;
struct StepLog {
StepStats step_stats;