You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

ms_service.proto 774 B

5 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // ms_service.proto
  2. syntax = "proto3";
  3. package ms_serving;
  4. service MSService {
  5. rpc Predict(PredictRequest) returns (PredictReply) {}
  6. rpc Test(PredictRequest) returns (PredictReply) {}
  7. }
  8. message PredictRequest {
  9. repeated Tensor data = 1;
  10. }
  11. message PredictReply {
  12. repeated Tensor result = 1;
  13. }
  14. enum DataType {
  15. MS_UNKNOWN = 0;
  16. MS_BOOL = 1;
  17. MS_INT8 = 2;
  18. MS_UINT8 = 3;
  19. MS_INT16 = 4;
  20. MS_UINT16 = 5;
  21. MS_INT32 = 6;
  22. MS_UINT32 = 7;
  23. MS_INT64 = 8;
  24. MS_UINT64 = 9;
  25. MS_FLOAT16 = 10;
  26. MS_FLOAT32 = 11;
  27. MS_FLOAT64 = 12;
  28. }
  29. message TensorShape {
  30. repeated int64 dims = 1;
  31. };
  32. message Tensor {
  33. // tensor shape info
  34. TensorShape tensor_shape = 1;
  35. // tensor content data type
  36. DataType tensor_type = 2;
  37. // tensor data
  38. bytes data = 3;
  39. }