You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.3 KiB
43 lines
1.3 KiB
7 years ago
|
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve. Licensed under
|
||
|
the Apache License, Version 2.0 (the "License"); you may not use this file
|
||
|
except in compliance with the License.
|
||
7 years ago
|
You may obtain a copy of the License at
|
||
7 years ago
|
|
||
7 years ago
|
http://www.apache.org/licenses/LICENSE-2.0
|
||
7 years ago
|
|
||
7 years ago
|
Unless required by applicable law or agreed to in writing, software
|
||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
|
See the License for the specific language governing permissions and
|
||
|
limitations under the License. */
|
||
7 years ago
|
|
||
|
syntax = "proto3";
|
||
|
package sendrecv;
|
||
|
|
||
|
service SendRecvService {
|
||
7 years ago
|
// For parameter server round-robin like hashing, do not split tensors.
|
||
7 years ago
|
// Send and recv only one tensor
|
||
7 years ago
|
// TODO(typhoonzero): add streaming API
|
||
7 years ago
|
rpc SendVariable(VariableMessage) returns (VoidMessage) {}
|
||
|
// Argument VariableMessage for GetVariable should only contain varname.
|
||
7 years ago
|
rpc GetVariable(VariableMessage) returns (VariableMessage) {}
|
||
7 years ago
|
}
|
||
|
|
||
|
// VariableMessage is serialized paddle variable message.
|
||
|
// It can be:
|
||
|
// LoDTensor
|
||
|
// SelectedRows
|
||
7 years ago
|
enum VarType {
|
||
|
LOD_TENSOR = 0;
|
||
|
SELECTED_ROWS = 1;
|
||
|
}
|
||
|
|
||
7 years ago
|
message VariableMessage {
|
||
|
string varname = 1;
|
||
7 years ago
|
// TODO(Yancey1989): reference framework::proto::VarDesc::VarType
|
||
|
VarType type = 2;
|
||
|
bytes serialized = 3;
|
||
7 years ago
|
}
|
||
|
|
||
7 years ago
|
message VoidMessage {}
|