-
Notifications
You must be signed in to change notification settings - Fork 5.8k
[Typing][A-20,A-61] Add type annotations for paddle/nn/{layer,functional}/loss.py
#65376
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
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
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.
比较建议 functional 和相关 layer 一并推进,或者先完成 functional 再完成 layer,以确保两者代码风格的一致性,并且推荐在 functional 定义 Alias,并在 layer 中 import 复用,以保持合理的依赖关系
@Asthestarsfalll 方便的话这个 PR 里推进 loss 的 functional 和 layer 吧
cc @gsq7474741
#65379 这种大 PR 也是建议拆分成 functional-layer pair 的形式的,PR 越大越不容易推进合入,合理地合并 PR 更利于 review |
好的 |
paddle/nn/layer/loss.py
paddle/nn/{layer,functional}/loss.py
paddle/nn/{layer,functional}/loss.py
paddle/nn/{layer,functional}/loss.py
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 diff 呢? |
是因为参数默认值改了吗?我使用代码生成0.00001会变成1e-5 |
哪个 API 呢? |
利用最新 commit 打印一下 diff 再看一下吧,现在看不出来 |
找到了 |
This reverts commit 8fa764f.
PR Category
User Experience
PR Types
Improvements
Description