提交 f83e98ab 编写于 作者: B barrierye

response_op cannot be ReadOp

上级 f89dc91a
...@@ -221,6 +221,8 @@ class PipelineServer(object): ...@@ -221,6 +221,8 @@ class PipelineServer(object):
def set_response_op(self, response_op): def set_response_op(self, response_op):
if not isinstance(response_op, Op): if not isinstance(response_op, Op):
raise Exception("response_op must be Op type.") 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 self._response_op = response_op
def _topo_sort(self, 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.
先完成此消息的编辑!
想要评论请 注册