-
Notifications
You must be signed in to change notification settings - Fork 875
[API Compatibility No.31-33] Sink asinh, atan to cpp, add param decorator to atan2 #7668
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
base: develop
Are you sure you want to change the base?
Conversation
|
感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-7668.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html |
Remove redundant data type list for input tensor.
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.
Pull request overview
This PR adds API compatibility by introducing an optional out parameter to three mathematical functions (asinh, atan, and atan2) in their Chinese documentation. The out parameter is added as a keyword-only argument with a default value of None.
Key Changes:
- Added
outparameter to function signatures ofasinh,atan, andatan2 - Updated parameter documentation sections to describe the new
outparameter - Modified data type descriptions for
asinhto include additional types (float16, bfloat16)
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| docs/api/paddle/atan_cn.rst | Added out parameter to function signature and parameter documentation |
| docs/api/paddle/atan2_cn.rst | Added out parameter to function signature and parameter documentation |
| docs/api/paddle/asinh_cn.rst | Added out parameter and updated data type list (incomplete) |
| docs/api/paddle/asin_cn.rst | Contains unresolved merge conflict markers from another change |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| 参数 | ||
| ::::::::: | ||
| - **x** (Tensor) - 输入的 Tensor,数据类型为:float32、float64、complex64、complex128。 | ||
| - **x** (Tensor) - 输入的 Tensor,数据类型为: float32, float64, float16, bfloat16, |
Copilot
AI
Dec 12, 2025
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.
The parameter description for x is incomplete. The line ends with a comma and the list of data types is not finished. This should include the complete list of supported data types.
| - **x** (Tensor) - 输入的 Tensor,数据类型为: float32, float64, float16, bfloat16, | |
| - **x** (Tensor) - 输入的 Tensor,数据类型为:float32、float64、float16、bfloat16、complex64、complex128。 |
Sink asinh, atan to cpp, add param decorator to atan2