aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/protobuf/worker.proto
diff options
context:
space:
mode:
authorGravatar Derek Murray <mrry@google.com>2017-11-15 14:07:41 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-11-15 14:12:16 -0800
commitfdff4048d4d0fdf7c12f927b92bb5e2fb812df12 (patch)
tree806544c485973a3f1e2d8e09eb6b9e4094e53060 /tensorflow/core/protobuf/worker.proto
parentb0bcf675a4b5d6217f3b58fd27b344f20e7bf25d (diff)
Add `WorkerService.DeleteWorkerSession` method to fix a memory leak.
The new method is the counterpart to `WorkerService.CreateWorkerSession`, and is called in all cases where worker sessions have been explicitly created (i.e. when using ClusterSpec propagation). PiperOrigin-RevId: 175877407
Diffstat (limited to 'tensorflow/core/protobuf/worker.proto')
-rw-r--r--tensorflow/core/protobuf/worker.proto16
1 files changed, 16 insertions, 0 deletions
diff --git a/tensorflow/core/protobuf/worker.proto b/tensorflow/core/protobuf/worker.proto
index 34a5cff366..e7b3f36fcc 100644
--- a/tensorflow/core/protobuf/worker.proto
+++ b/tensorflow/core/protobuf/worker.proto
@@ -66,6 +66,22 @@ message CreateWorkerSessionResponse {
////////////////////////////////////////////////////////////////////////////////
//
+// DeleteSession method request/response messages
+//
+// Deletes all worker-side state associated with the given session handle.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+message DeleteWorkerSessionRequest {
+ // Sessions are identified by a given handle.
+ string session_handle = 1;
+}
+
+message DeleteWorkerSessionResponse {
+}
+
+////////////////////////////////////////////////////////////////////////////////
+//
// RegisterGraph method request/response messages
//
// For each session, after the master placed every node on a device,