Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sign Chinese docs #7034

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/api/paddle/sign_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ sign

.. py:function:: paddle.sign(x, name=None)

对输入参数 ``x`` 中每个元素进行正负判断,并且输出正负判断值:1 代表正,-1 代表负,0 代表零
对输入参数 ``x`` 中每个元素进行判断,并且输出判断值:对于实数, 1 表示正数,-1 表示负数,0 表示零。对于复数,返回值是一个单位大小的复数。如果复数元素为零,则返回 0+0j

参数
::::::::::::
- **x** (Tensor) – 进行正负值判断的多维 Tensor,数据类型为 uint8, int8, int16, int32, int64, bfloat16, float16, float32 或 float64
- **x** (Tensor) – 进行正负值判断的多维 Tensor,数据类型为 uint8, int8, int16, int32, int64, bfloat16, float16, float32, float64, complex64 或 complex128
- **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。

返回
Expand Down