未验证 提交 1f3d16ad 编写于 作者: C Chen Weihang 提交者: GitHub

remove needless axis argument (#45366)

上级 c70d79a0
......@@ -4484,7 +4484,7 @@ def diff(x, n=1, axis=-1, prepend=None, append=None, name=None):
if x.dtype == paddle.bool:
return _C_ops.final_state_logical_xor(input_back, input_front)
else:
return elementwise_sub(input_back, input_front, axis=axis)
return _C_ops.final_state_subtract(input_back, input_front)
elif _in_legacy_dygraph():
has_pend = False
input_list = []
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册