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

add Class KLDivLoss and function kl_div #25977

Merged
merged 13 commits into from
Aug 15, 2020

Conversation

LielinJiang
Copy link
Contributor

@LielinJiang LielinJiang commented Aug 5, 2020

PR types

New features

PR changes

APIs

Describe

添加KLDivLoss类, 并在function中添加kl_div(kldiv_loss的别名)

@paddle-bot-old
Copy link

paddle-bot-old bot commented Aug 5, 2020

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.


class KLDivLoss(fluid.dygraph.Layer):
"""
:alias_main: paddle.nn.KLDivLoss
Copy link
Contributor

Choose a reason for hiding this comment

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

alias 相关行可以删除 会自动处理

Copy link
Contributor Author

Choose a reason for hiding this comment

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

deleted, thanks.

: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
Copy link
Contributor

Choose a reason for hiding this comment

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

alias 相关行可以删除

Copy link
Contributor Author

Choose a reason for hiding this comment

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

deleted, thanks

Copy link
Contributor

@yaoxuefeng6 yaoxuefeng6 left a comment

Choose a reason for hiding this comment

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

LGTM

@LielinJiang LielinJiang merged commit e4033a0 into PaddlePaddle:develop Aug 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants