map_rnn.proto 944 字节
Newer Older
W
sdk-cpp  
wangguibao 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
syntax="proto2";
import "pds_option.proto";

package baidu.infinite.map_rnn;
//package baidu.paddle_serving.predictor.map_rnn;

option cc_generic_services = true;

/*message Tensor {
    required string name = 1;
    repeated uint32 shape = 2;
    required bytes features = 3;
};*/

message Line {
	required bytes value = 1;
};

message Lines {
	repeated Line line = 1;
};

message DenseInstance {
    repeated Lines step_data = 1;
	required Lines week_data = 2;
	required Lines minute_data = 3;
	required uint32 batch_size = 4;
};

message Request {
    repeated DenseInstance instances = 1;
};

message DensePrediction {
    repeated float categories = 1;
};

message Response {
    repeated DensePrediction predictions = 1;
};

service MapRnnService {
    rpc inference(Request) returns (Response);
    rpc debug(Request) returns (Response);
    //option (pds.options).generate_impl = true;
    option (pds.options).generate_stub = true;
};