-
Notifications
You must be signed in to change notification settings - Fork 724
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
Conversation
Thanks for your contribution! |
eed825c
to
a779a71
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this 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
docs/api/paddle/atan2_cn.rst
Outdated
@@ -0,0 +1,47 @@ | |||
.. _cn_api_fluid_layers_atan2: |
There was a problem hiding this comment.
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
docs/api/paddle/atan2_cn.rst
Outdated
\end{matrix}\right. | ||
|
||
|
||
参数: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
格式改为:
参数
:::::::::(9个英文冒号)
docs/api/paddle/atan2_cn.rst
Outdated
- **x** (Tensor) - 输入的Tensor,数据类型为:float16、float32、float64。 | ||
- **name** (str,可选) - 操作的名称(可选,默认值为None)。更多信息请参见 :ref:`api_guide_Name`。 | ||
|
||
返回: 输出Tensor,与 ``x`` 维度相同、数据类型相同。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
返回与返回类型写在一起,格式为:
返回
:::::::::(9个英文冒号)
输出Tensor,与 x
维度相同、数据类型相同。
docs/api/paddle/atan2_cn.rst
Outdated
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') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同上,加空行与空格
docs/api/paddle/atan2_cn.rst
Outdated
#Tensor(shape=[4], dtype=float32, place=CUDAPlace(0), stop_gradient=True, | ||
# [-1, -1, 1, 1]) | ||
|
||
out=paddle.atan2(y, x) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同上,加空格
docs/api/paddle/expm1_cn.rst
Outdated
@@ -0,0 +1,33 @@ | |||
.. _cn_api_fluid_layers_expm1: |
There was a problem hiding this comment.
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
参数等改动同上
3f3551c
to
b0403cc
Compare
docs/api/paddle/atan2_cn.rst
Outdated
|
||
输出Tensor,与 ``x`` 维度相同、数据类型相同。 | ||
|
||
**代码示例**: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
代码示例: ->
代码示例
:::::::::(9个英文冒号)
f31d72c
to
28518e4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Add new api, "expm1, atan2"
PaddlePaddle/Paddle#33066
PaddlePaddle/Paddle#33067