-
Notifications
You must be signed in to change notification settings - Fork 274
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 5th No.10】 为 Paddle 新增 bernoulli_ / log_normal_ / log_normal API #618
Conversation
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分开来写,一共三个API,其中依赖的 normal_
内部正在开发中
|
||
考虑到 `Paddle` 本身已经实现 `paddle.uniform_`,本方案考虑使用 Python API 实现。 | ||
|
||
使用 `paddle.uniform_` 生成一个正态分布,随后将正态分布中小于 `p` 的部分,生成对应的 mask 矩阵,与原 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.
注意需要组合连续的inplace,后面的inplace api目前都有没有
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
…al API (PaddlePaddle#618) * added log_normal rfc doc * updated bernoulli_ and log_normal rfc doc * updated bernoulli_ rfc doc * updated title of rfc * updated title of rfc * updated rfc doc * updated rfc doc
PaddlePaddle/Paddle#57262