-
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
【Hackathon No.27】为 Paddle 新增 frac 数学计算API #4539
Conversation
Thanks for your contribution! |
docs/api/paddle/frac_cn.rst
Outdated
|
||
import paddle | ||
|
||
= paddle.rand([3,4],'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.
[3,4] 怎么变成[3,3] 了
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.
抱歉,已修改
- Tensor (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.
https://github.com/PaddlePaddle/docs/pull/4130/files
COPY-FROM: paddle.gcd
使用这种写法,保证中英文同步示例
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.
已修改
@@ -2165,6 +2165,15 @@ trunc(name=None) | |||
|
|||
请参考 :ref:`cn_api_tensor_trunc` | |||
|
|||
frac(name=None) |
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.
frac(x, name=None)
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.
对于Tensor.frac来说,并不需要显式地传入x
add rst of paddle.frac