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

【Hackathon No.27】为 Paddle 新增 frac 数学计算API #4539

Merged
merged 3 commits into from
Apr 14, 2022
Merged

【Hackathon No.27】为 Paddle 新增 frac 数学计算API #4539

merged 3 commits into from
Apr 14, 2022

Conversation

Asthestarsfalll
Copy link
Contributor

@Asthestarsfalll Asthestarsfalll commented Apr 8, 2022

add rst of paddle.frac

@paddle-bot-old
Copy link

paddle-bot-old bot commented Apr 8, 2022

Thanks for your contribution!


import paddle

= paddle.rand([3,4],'float32')
Copy link
Contributor

Choose a reason for hiding this comment

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

[3,4] 怎么变成[3,3] 了

Copy link
Contributor Author

Choose a reason for hiding this comment

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

抱歉,已修改

- Tensor (Tensor),输入矩阵只保留小数部分的结果。


代码示例
Copy link
Collaborator

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
使用这种写法,保证中英文同步示例

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已修改

@luotao1 luotao1 closed this Apr 13, 2022
@luotao1 luotao1 reopened this Apr 13, 2022
@@ -2165,6 +2165,15 @@ trunc(name=None)

请参考 :ref:`cn_api_tensor_trunc`

frac(name=None)
Copy link
Collaborator

Choose a reason for hiding this comment

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

frac(x, name=None)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

对于Tensor.frac来说,并不需要显式地传入x

@luotao1 luotao1 merged commit 4453c1a into PaddlePaddle:develop Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants