Skip to content

Commit eb555cb

Browse files
committed
test
1 parent 532736a commit eb555cb

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

python/paddle/tensor/math.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -707,9 +707,10 @@ def _elementwise_op(helper):
707707
def add(
708708
x: Tensor,
709709
y: Tensor,
710+
name: str | None = None,
711+
*,
710712
alpha: Number = 1,
711713
out: Tensor | None = None,
712-
name: str | None = None,
713714
) -> Tensor:
714715
"""
715716
Elementwise Add Operator.
@@ -796,7 +797,11 @@ def add(
796797
@ParamAliasDecorator({"x": ["input"], "y": ["other"]})
797798
@inplace_apis_in_dygraph_only
798799
def add_(
799-
x: Tensor, y: Tensor, alpha: Number = 1, name: str | None = None
800+
x: Tensor,
801+
y: Tensor,
802+
name: str | None = None,
803+
*,
804+
alpha: Number = 1,
800805
) -> Tensor:
801806
"""
802807
Inplace version of ``add`` API, the output Tensor will be inplaced with input ``x``.

0 commit comments

Comments
 (0)