提交 5ad0861c 编写于 作者: B barrierye

response_op cannot be ReadOp

上级 e08e2fb4
......@@ -221,6 +221,8 @@ class PipelineServer(object):
def set_response_op(self, response_op):
if not isinstance(response_op, Op):
raise Exception("response_op must be Op type.")
if len(response_op.get_input_ops()) == 0:
raise Exception("response_op cannot be ReadOp.")
self._response_op = response_op
def _topo_sort(self, response_op):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册