Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
f424ef1a
S
Serving
项目概览
PaddlePaddle
/
Serving
大约 1 年 前同步成功
通知
185
Star
833
Fork
253
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
105
列表
看板
标记
里程碑
合并请求
10
Wiki
2
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Serving
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
105
Issue
105
列表
看板
标记
里程碑
合并请求
10
合并请求
10
Pages
分析
分析
仓库分析
DevOps
Wiki
2
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f424ef1a
编写于
9月 03, 2021
作者:
S
ShiningZhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
java client proto extend elem_type
上级
b77f39b9
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
71 addition
and
16 deletion
+71
-16
java/src/main/proto/general_model_service.proto
java/src/main/proto/general_model_service.proto
+71
-16
未找到文件。
java/src/main/proto/general_model_service.proto
浏览文件 @
f424ef1a
...
...
@@ -12,41 +12,96 @@
// See the License for the specific language governing permissions and
// limitations under the License.
syntax
=
"proto
2
"
;
syntax
=
"proto
3
"
;
package
baidu
.
paddle_serving.predictor.general_model
;
option
java_multiple_files
=
true
;
message
Tensor
{
repeated
string
data
=
1
;
repeated
int32
int_data
=
2
;
repeated
int64
int64_data
=
3
;
repeated
float
float_data
=
4
;
optional
int32
elem_type
=
5
;
// 0 means int64, 1 means float32, 2 means int32, 3 means string
repeated
int32
shape
=
6
;
// shape should include batch
repeated
int32
lod
=
7
;
// only for fetch tensor currently
optional
string
name
=
8
;
// get from the Model prototxt
optional
string
alias_name
=
9
;
// get from the Model prototxt
// VarType: INT64
repeated
int64
int64_data
=
1
;
// VarType: FP32
repeated
float
float_data
=
2
;
// VarType: INT32
repeated
int32
int_data
=
3
;
// VarType: FP64
repeated
double
float64_data
=
4
;
// VarType: UINT32
repeated
uint32
uint32_data
=
5
;
// VarType: BOOL
repeated
bool
bool_data
=
6
;
// (No support)VarType: COMPLEX64, 2x represents the real part, 2x+1
// represents the imaginary part
repeated
float
complex64_data
=
7
;
// (No support)VarType: COMPLEX128, 2x represents the real part, 2x+1
// represents the imaginary part
repeated
double
complex128_data
=
8
;
// VarType: STRING
repeated
string
data
=
9
;
// Element types:
// 0 => INT64
// 1 => FP32
// 2 => INT32
// 3 => FP64
// 4 => INT16
// 5 => FP16
// 6 => BF16
// 7 => UINT8
// 8 => INT8
// 9 => BOOL
// 10 => COMPLEX64
// 11 => COMPLEX128
// 20 => STRING
int32
elem_type
=
10
;
// Shape of the tensor, including batch dimensions.
repeated
int32
shape
=
11
;
// Level of data(LOD), support variable length data, only for fetch tensor
// currently.
repeated
int32
lod
=
12
;
// Correspond to the variable 'name' in the model description prototxt.
string
name
=
13
;
// Correspond to the variable 'alias_name' in the model description prototxt.
string
alias_name
=
14
;
// get from the Model prototxt
// VarType: FP16, INT16, INT8, BF16, UINT8
bytes
tensor_content
=
15
;
};
message
Request
{
repeated
Tensor
tensor
=
1
;
repeated
string
fetch_var_names
=
2
;
optional
bool
profile_server
=
3
[
default
=
false
]
;
required
uint64
log_id
=
4
[
default
=
0
]
;
bool
profile_server
=
3
;
uint64
log_id
=
4
;
};
message
Response
{
repeated
ModelOutput
outputs
=
1
;
repeated
int64
profile_time
=
2
;
// Error code
int32
err_no
=
3
;
// Error messages
string
err_msg
=
4
;
};
message
ModelOutput
{
repeated
Tensor
tensor
=
1
;
optional
string
engine_name
=
2
;
string
engine_name
=
2
;
}
service
GeneralModelService
{
rpc
inference
(
Request
)
returns
(
Response
)
{}
rpc
debug
(
Request
)
returns
(
Response
)
{}
rpc
inference
(
Request
)
returns
(
Response
)
;
rpc
debug
(
Request
)
returns
(
Response
)
;
};
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录