diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2017-12-11 16:01:17 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-12-11 16:06:06 -0800 |
commit | da9ef31bfe82fad71721b3213891a491628736a0 (patch) | |
tree | 09e5a75d5a08a54ac14e3000530d5b57be221e23 /tensorflow/core/distributed_runtime/cluster_function_library_runtime.cc | |
parent | ab0866461e03480f5c5e8ae40b280d07b92639ae (diff) |
Fix the remote call graph construction so that the created _Send ops for returning the results point to the correct return value.
List available workers when the remote call target is not available.
PiperOrigin-RevId: 178687525
Diffstat (limited to 'tensorflow/core/distributed_runtime/cluster_function_library_runtime.cc')
-rw-r--r-- | tensorflow/core/distributed_runtime/cluster_function_library_runtime.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tensorflow/core/distributed_runtime/cluster_function_library_runtime.cc b/tensorflow/core/distributed_runtime/cluster_function_library_runtime.cc index 593fe0e363..d84b69d06b 100644 --- a/tensorflow/core/distributed_runtime/cluster_function_library_runtime.cc +++ b/tensorflow/core/distributed_runtime/cluster_function_library_runtime.cc @@ -105,6 +105,7 @@ Status ClusterFunctionLibraryRuntime::ConstructFunctionGraph( Rendezvous::CreateKey(target, 1 /* src_incarnation */, target, out.name(), FrameAndIter(0, 0)); recv_keys->push_back(key); + ++i; } return Status::OK(); } @@ -124,8 +125,11 @@ Status ClusterFunctionLibraryRuntime::Instantiate( WorkerInterface* wi = worker_session_->worker_cache->CreateWorker(target); if (wi == nullptr) { - return errors::InvalidArgument("Could not find worker with target: ", - target); + std::vector<string> workers; + worker_session_->worker_cache->ListWorkers(&workers); + return errors::InvalidArgument( + "Could not find worker with target: ", target, + " Available workers: ", str_util::Join(workers, ", ")); } // Make RPC and obtain a graph handle. |