Skip to content

Conversation

@hxzd5568
Copy link
Contributor

@hxzd5568 hxzd5568 commented Aug 1, 2025

PR Category

Operator Mechanism

PR Types

Bug fixes

Description

Pcard-67164
cross_entropy 输入input 维度为 [N,..., C], 其中C 为类别数的意思,在API文档 和 yaml文件中,这个 C不能超过int最大值,从语义角度来说,也不会存在这么多类别。因此添加该检查

@paddle-bot
Copy link

paddle-bot bot commented Aug 1, 2025

你的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.

@hxzd5568
Copy link
Contributor Author

hxzd5568 commented Aug 4, 2025

/re-run all-failed

Copy link
Contributor

@wanghuancoder wanghuancoder left a comment

Choose a reason for hiding this comment

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

LGTM

@wanghuancoder wanghuancoder merged commit 5da76c9 into PaddlePaddle:develop Aug 4, 2025
85 of 87 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants