提交 23291abd 编写于 作者: M minqiyang

Polish code

上级 7c767a44
...@@ -6540,6 +6540,7 @@ for func in [ ...@@ -6540,6 +6540,7 @@ for func in [
def _logical_op(op_name, x, y, out=None, name=None, binary_op=True): def _logical_op(op_name, x, y, out=None, name=None, binary_op=True):
helper = LayerHelper(op_name, **locals()) helper = LayerHelper(op_name, **locals())
if binary_op:
assert x.dtype == y.dtype assert x.dtype == y.dtype
if out is None: if out is None:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册