Skip to content

Commit e4d17c3

Browse files
committed
✏️ Fixed doc error
1 parent 5a02692 commit e4d17c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/paddle/tensor/math.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7189,7 +7189,7 @@ def signbit(x, name=None):
71897189
71907190
>>> import paddle
71917191
>>> x = paddle.to_tensor([1.1, -2.1, 0., 2.5, -0.0], dtype='float32')
7192-
>>> res = paddle.signbit(x, y)
7192+
>>> res = paddle.signbit(x)
71937193
>>> print(res)
71947194
Tensor(shape=[4], dtype=bool, place=Place(cpu), stop_gradient=True,
71957195
[False , True, False, False, True])
@@ -7198,7 +7198,7 @@ def signbit(x, name=None):
71987198
:name: signbit-example-2
71997199
72007200
>>> x = paddle.to_tensor([-5, -2, 3], dtype='int32')
7201-
>>> res = paddle.signbit(x, y)
7201+
>>> res = paddle.signbit(x)
72027202
>>> print(res)
72037203
Tensor(shape=[3], dtype=bool, place=Place(cpu), stop_gradient=True,
72047204
[True. , True , False])

0 commit comments

Comments
 (0)