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

Add expm1, atan2, test=develop #3542

Merged
merged 1 commit into from
Jun 18, 2021
Merged

Conversation

ronny1996
Copy link
Contributor

@ronny1996 ronny1996 commented May 26, 2021

@paddle-bot-old
Copy link

Thanks for your contribution!

@CLAassistant
Copy link

CLAassistant commented May 26, 2021

CLA assistant check
All committers have signed the CLA.

@ronny1996 ronny1996 force-pushed the develop branch 4 times, most recently from eed825c to a779a71 Compare May 27, 2021 07:45
@qili93 qili93 self-requested a review June 9, 2021 09:50
Copy link
Contributor

@qili93 qili93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@qili93 qili93 requested a review from TCChenlong June 9, 2021 09:50
Copy link
Collaborator

@TCChenlong TCChenlong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

需要在这个文件中,找到合适的位置,添加这两个API docs/Overview_cn.rst at develop · PaddlePaddle/docs

@@ -0,0 +1,47 @@
.. _cn_api_fluid_layers_atan2:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_cn_api_fluid_layers_atan2 -> _cn_api_paddle_atan2

\end{matrix}\right.


参数:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

格式改为:
参数
:::::::::(9个英文冒号)

- **x** (Tensor) - 输入的Tensor,数据类型为:float16、float32、float64。
- **name** (str,可选) - 操作的名称(可选,默认值为None)。更多信息请参见 :ref:`api_guide_Name`。

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

返回与返回类型写在一起,格式为:
返回
:::::::::(9个英文冒号)

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

y=paddle.to_tensor([-1, +1, +1, -1]).astype('float32')
#Tensor(shape=[4], dtype=float32, place=CUDAPlace(0), stop_gradient=True,
# [-1, 1, 1, -1])
x=paddle.to_tensor([-1, -1, +1, +1]).astype('float32')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同上,加空行与空格

#Tensor(shape=[4], dtype=float32, place=CUDAPlace(0), stop_gradient=True,
# [-1, -1, 1, 1])

out=paddle.atan2(y, x)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同上,加空格

@@ -0,0 +1,33 @@
.. _cn_api_fluid_layers_expm1:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_cn_api_fluid_layers_expm1 -> _cn_api_paddle_expm1
参数等改动同上

@ronny1996 ronny1996 force-pushed the develop branch 2 times, most recently from 3f3551c to b0403cc Compare June 10, 2021 07:06

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

**代码示例**:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

代码示例: ->
代码示例
:::::::::(9个英文冒号)

@ronny1996 ronny1996 force-pushed the develop branch 3 times, most recently from f31d72c to 28518e4 Compare June 16, 2021 04:44
Copy link
Collaborator

@TCChenlong TCChenlong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@TCChenlong TCChenlong merged commit c1d4256 into PaddlePaddle:develop Jun 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants