-
Notifications
You must be signed in to change notification settings - Fork 764
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
【Hackathon4】No6. Add chinese doc files for ldexp (#5925)
* add cn docs for ldexp * Update docs/api/paddle/ldexp_cn.rst Co-authored-by: zachary sun <[email protected]> * Update docs/api/paddle/Overview_cn.rst Co-authored-by: zachary sun <[email protected]> * fix codestyle --------- Co-authored-by: zachary sun <[email protected]>
- Loading branch information
1 parent
0132db1
commit 188c453
Showing
2 changed files
with
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
.. _cn_api_layers_ldexp: | ||
|
||
ldexp | ||
------------------------------- | ||
|
||
.. py:function:: paddle.ldexp(x, y, name=None) | ||
计算 `x` 乘以 2 的 `y` 次幂 | ||
|
||
.. math:: | ||
out = x * 2^{y} | ||
参数 | ||
:::::::::::: | ||
|
||
- **x** (Tensor) - 多维 Tensor。数据类型为 float32、float64、int32、int64。 | ||
- **y** (Tensor) - 多维 Tensor。通常为整数。 | ||
- **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。 | ||
|
||
返回 | ||
:::::::::::: | ||
输出为 Tensor,如果 ``x``, ``y`` 有不同的形状并且是可广播的,那么产生的张量形状是广播后 x 和 y 的形状。如果 ``x``, ``y`` 有相同的形状,其形状与 ``x``, ``y`` 相同。数据类型是 float32 或 float64。 | ||
|
||
代码示例 | ||
:::::::::::: | ||
|
||
COPY-FROM: paddle.ldexp |