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