Skip to content

【Hackathon4】No5.nextafter add Chinese doc files #5805

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

Merged
merged 7 commits into from
Apr 27, 2023
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions docs/api/paddle/Overview_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ tensor 数学操作
" :ref:`paddle.multiply <cn_api_fluid_layers_multiply>` ", "逐元素相乘算子"
" :ref:`paddle.nan_to_num <cn_api_tensor_nan_to_num>` ", "替换 x 中的 NaN、+inf、-inf 为指定值"
" :ref:`paddle.neg <cn_api_paddle_neg>` ", "计算输入 x 的相反数并返回"
" :ref:`paddle.nextafter <cn_api_paddle_nextafter>` ", "逐元素将 x 之后的下一个浮点值返回"
" :ref:`paddle.not_equal <cn_api_tensor_not_equal>` ", "逐元素地返回 x!=y 的逻辑值"
" :ref:`paddle.pow <cn_api_paddle_tensor_math_pow>` ", "指数算子,逐元素计算 x 的 y 次幂"
" :ref:`paddle.prod <cn_api_tensor_cn_prod>` ", "对指定维度上的 Tensor 元素进行求乘积运算"
Expand Down
28 changes: 28 additions & 0 deletions docs/api/paddle/nextafter_cn.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
.. _cn_api_paddle_nextafter:

nextafter
-------------------------------

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




逐元素将 x 之后的下一个浮点值返回给 y。

输入 `x` 和 `y` 的形状(shape)必须是可广播的(broadcastable)。详情请参考 `Tensor 的广播机制 <../../guides/beginner/tensor_cn.html#id7>`_ 。

参数
:::::::::
- **x** (Tensor) - 输入的 Tensor,数据类型为:float32、float64。
- **y** (Tensor) - 输入的 Tensor,数据类型为:float32、float64。
- **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。

返回
:::::::::
输出 Tensor,与 ``x`` 维度相同、数据类型相同。

代码示例
:::::::::

COPY-FROM: paddle.nextafter