1/* Copyright 2016 The TensorFlow Authors. All Rights Reserved. 2 3Licensed under the Apache License, Version 2.0 (the "License"); 4you may not use this file except in compliance with the License. 5You may obtain a copy of the License at 6 7 http://www.apache.org/licenses/LICENSE-2.0 8 9Unless required by applicable law or agreed to in writing, software 10distributed under the License is distributed on an "AS IS" BASIS, 11WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12See the License for the specific language governing permissions and 13limitations under the License. 14==============================================================================*/ 15 16syntax = "proto3"; 17 18package tensorflow.grpc; 19 20import "tensorflow/core/protobuf/worker.proto"; 21 22option java_outer_classname = "WorkerServiceProtos"; 23option java_multiple_files = true; 24option java_package = "org.tensorflow.distruntime"; 25option go_package = "github.com/tensorflow/tensorflow/tensorflow/go/core/protobuf/for_core_protos_go_proto"; 26 27//////////////////////////////////////////////////////////////////////////////// 28// 29// WorkerService defines a TensorFlow service that executes dataflow 30// graphs on a set of local devices, on behalf of a MasterService. 31// 32// A worker service keeps track of multiple "registered graphs". Each 33// registered graph is a subgraph of a client's graph, corresponding to 34// only the nodes that should execute on this worker (and any 35// additional nodes necessary for inter-process communication using 36// the `RecvTensor` method). 37// 38//////////////////////////////////////////////////////////////////////////////// 39 40service WorkerService { 41 // See worker.proto for details. 42 rpc GetStatus(GetStatusRequest) returns (GetStatusResponse); 43 44 // See worker.proto for details. 45 rpc CreateWorkerSession(CreateWorkerSessionRequest) 46 returns (CreateWorkerSessionResponse); 47 48 // See worker.proto for details. 49 rpc DeleteWorkerSession(DeleteWorkerSessionRequest) 50 returns (DeleteWorkerSessionResponse); 51 52 // See worker.proto for details. 53 rpc RegisterGraph(RegisterGraphRequest) returns (RegisterGraphResponse); 54 55 // See worker.proto for details. 56 rpc DeregisterGraph(DeregisterGraphRequest) returns (DeregisterGraphResponse); 57 58 // See worker.proto for details. 59 rpc RunGraph(RunGraphRequest) returns (RunGraphResponse); 60 61 // See worker.proto for details. 62 rpc CleanupGraph(CleanupGraphRequest) returns (CleanupGraphResponse); 63 64 // See worker.proto for details. 65 rpc CleanupAll(CleanupAllRequest) returns (CleanupAllResponse); 66 67 // See worker.proto for details. 68 rpc RecvTensor(RecvTensorRequest) returns (RecvTensorResponse) { 69 // RecvTensor Method 70 } 71 72 // See worker.proto for details. 73 rpc Logging(LoggingRequest) returns (LoggingResponse); 74 75 // See worker.proto for details. 76 rpc Tracing(TracingRequest) returns (TracingResponse); 77 78 // See worker.proto for details. 79 rpc RecvBuf(RecvBufRequest) returns (RecvBufResponse) {} 80 81 // See worker.proto for details. 82 rpc GetStepSequence(GetStepSequenceRequest) returns (GetStepSequenceResponse); 83 84 // See worker.proto for details. 85 rpc CompleteGroup(CompleteGroupRequest) returns (CompleteGroupResponse); 86 87 // See worker.proto for details. 88 rpc CompleteInstance(CompleteInstanceRequest) 89 returns (CompleteInstanceResponse); 90} 91