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.
* add frexp * 修改 * 按照Paddle英文注释修改 * test * 补充name * 按照要求修改 * pre-commit * pre-commit
- Loading branch information
1 parent
0d9eef0
commit 4d2f8e1
Showing
5 changed files
with
37 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 |
---|---|---|
|
@@ -271,3 +271,4 @@ Methods | |
zero_ | ||
is_complex | ||
is_integer | ||
frexp |
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,25 @@ | ||
.. _cn_api_paddle_frexp: | ||
|
||
frexp | ||
------------------------------- | ||
|
||
.. py:function:: paddle.frexp(x, name) | ||
用于把一个浮点数分解为尾数和指数的函数, 返回一个尾数 Tensor 和一个指数 Tensor | ||
|
||
参数 | ||
:::::::::: | ||
- **x** (Tensor) – 输入是一个多维的 Tensor,它的数据类型可以是 float32,float64。 | ||
- **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name` ,一般无需设置,默认值为 None。 | ||
返回 | ||
:::::::::: | ||
mantissa(Tensor):分解后的尾数,类型为 Tensor,形状和原输入的形状一致。 | ||
|
||
exponent(Tensor):分解后的指数,类型为 Tensor,形状和原输入的形状一致。 | ||
|
||
|
||
代码示例 | ||
:::::::::: | ||
|
||
COPY-FROM: paddle.frexp |