forked from PaddlePaddle/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
【Hackathon 5th No.13】Added signbit doc (PaddlePaddle#6340)
* Docs: updated signbit doc. * Docs: updated signbit doc. * Docs: updated signbit doc. * updated signbit doc
- Loading branch information
1 parent
532b063
commit 2979eb8
Showing
3 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
.. _cn_api_paddle_signbit: | ||
|
||
signbit | ||
------------------------------- | ||
|
||
.. py:function:: paddle.signbit(x, name=None) | ||
对输入参数 ``x`` 的每个元素判断是否设置了其符号位,并输出判断值。若存在符号位,则输出 True,否则输出 False。 | ||
|
||
参数 | ||
:::::::::::: | ||
- **x** (Tensor) – 进行符号位判断的多维 Tensor,数据类型为 int8,int16,int32,int64,float16,float32 或 float64。 | ||
- **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。 | ||
|
||
返回 | ||
:::::::::::: | ||
Tensor,输出掩码,数据的 shape 大小及数据类型和输入 ``x`` 一致。 | ||
|
||
|
||
代码示例 | ||
:::::::::::: | ||
|
||
COPY-FROM: paddle.signbit |