未验证 提交 b4dddb29 编写于 作者: Y Yang Yu

Fix Unittest

上级 2dd91dd5
......@@ -801,12 +801,13 @@ def zeros(shape, dtype, main_program=None):
def increment(x, value=1.0, main_program=None):
helper = LayerHelper("increment", **locals())
out = helper.create_tmp_variable(dtype=x.data_type)
helper.append_op(
type='increment',
inputs={'X': [x]},
outputs={'Out': [x]},
outputs={'Out': [out]},
attrs={'step': value})
return x
return out
def array_write(x, i, array=None, main_program=None):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册