Fix logic bug: should use logical-AND, not bitwise-AND.
authorA. Unique TensorFlower <gardener@tensorflow.org>
Sun, 13 May 2018 20:53:35 +0000 (13:53 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Sun, 13 May 2018 20:56:27 +0000 (13:56 -0700)
PiperOrigin-RevId: 196435466

tensorflow/core/distributed_runtime/session_mgr.cc

index 7ef4206..a312017 100644 (file)
@@ -67,7 +67,7 @@ Status SessionMgr::CreateSession(const string& session,
     worker_name = WorkerNameFromServerDef(server_def);
   }
 
-  if (worker_cache != nullptr & default_worker_cache_.get() != nullptr) {
+  if (worker_cache != nullptr && default_worker_cache_.get() != nullptr) {
     worker_cache->SetLogging(this->is_logging_active_);
   }