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

[Zero-Dim] Support paddle.all/any/min/prod/logsumexp/amax/amin/quantile/some loss output 0D, test=allcase #53051

Merged
merged 1 commit into from Apr 20, 2023

Conversation

zhwesky2010
Copy link
Contributor

@zhwesky2010 zhwesky2010 commented Apr 18, 2023

PR types

New features

PR changes

APIs

Describe

card-66984

支持以下API输出0D:

1. paddle.all
2. paddle.any
3. paddle.min
4. paddle.prod
5. paddle.logsumexp
6. paddle.amax
7. paddle.amin
8. paddle.quantile
9. binary_cross_entropy
10. binary_cross_entropy_with_logits
11. margin_ranking_loss
12. l1_loss
13. cross_entropy
14. sigmoid_focal_loss

同时将一些 loss.numpy()[0] 改成兼容态的 float(loss) 形式,在[1]和[]下均能运行。

@paddle-bot
Copy link

paddle-bot bot commented Apr 18, 2023

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

Copy link
Contributor

@cxxly cxxly left a comment

Choose a reason for hiding this comment

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

LGTM for composite_backward_api.h

Copy link
Contributor

@jeff41404 jeff41404 left a comment

Choose a reason for hiding this comment

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

LGTM

@zhwesky2010 zhwesky2010 merged commit e6def1e into PaddlePaddle:develop Apr 20, 2023
23 of 24 checks passed
@zhwesky2010 zhwesky2010 changed the title [Zero-Dim] Support paddle.all/any/min/prod/logsumexp/amax/amin/quantile output 0D, test=allcase [Zero-Dim] Support paddle.all/any/min/prod/logsumexp/amax/amin/quantile/some loss output 0D, test=allcase Apr 21, 2023
lijialin03 pushed a commit to lijialin03/Paddle that referenced this pull request Apr 25, 2023
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

3 participants