提交 a83f1254 编写于 作者: G guru4elephant

try to add general response op, and first add python side

上级 3ef1732b
......@@ -23,12 +23,15 @@ from version import serving_server_version
class OpMaker(object):
def __init__(self):
self.op_dict = {"general_infer":"GeneralInferOp",
"general_text_infer":"GeneralTextInferOp",
self.op_dict = {
"general_infer":"GeneralInferOp",
"general_reader":"GeneralReaderOp",
"general_response":"GeneralResponseOp",
"general_text_reader":"GeneralTextReaderOp",
"general_text_response":"GeneralTextResponseOp",
"general_single_kv":"GeneralSingleKVOp",
"general_dist_kv":"GeneralDistKVOp"}
"general_dist_kv":"GeneralDistKVOp"
}
# currently, inputs and outputs are not used
# when we have OpGraphMaker, inputs and outputs are necessary
......
......@@ -24,10 +24,13 @@ from version import serving_server_version
class OpMaker(object):
def __init__(self):
self.op_dict = {
"general_infer": "GeneralInferOp",
"general_reader": "GeneralReaderOp",
"general_single_kv": "GeneralSingleKVOp",
"general_dist_kv": "GeneralDistKVOp"
"general_infer":"GeneralInferOp",
"general_reader":"GeneralReaderOp",
"general_response":"GeneralResponseOp",
"general_text_reader":"GeneralTextReaderOp",
"general_text_response":"GeneralTextResponseOp",
"general_single_kv":"GeneralSingleKVOp",
"general_dist_kv":"GeneralDistKVOp"
}
# currently, inputs and outputs are not used
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册