-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
add Class KLDivLoss and function kl_div #25977
Conversation
Thanks for your contribution! |
python/paddle/nn/layer/loss.py
Outdated
|
||
class KLDivLoss(fluid.dygraph.Layer): | ||
""" | ||
:alias_main: paddle.nn.KLDivLoss |
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.
alias 相关行可以删除 会自动处理
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.
deleted, thanks.
python/paddle/fluid/layers/loss.py
Outdated
:alias_main: paddle.nn.functional.kldiv_loss | ||
:alias: paddle.nn.functional.kldiv_loss,paddle.nn.functional.loss.kldiv_loss | ||
:alias_main: paddle.nn.functional.kl_div | ||
:alias: paddle.nn.functional.kl_div,paddle.nn.functional.loss.kl_div |
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.
alias 相关行可以删除
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.
deleted, thanks
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
PR types
New features
PR changes
APIs
Describe
添加KLDivLoss类, 并在function中添加kl_div(kldiv_loss的别名)