Skip to content

[API Compatibility No.155] Keep input/target alias for bce_with_logits-part#846

Open
Aidenwu0209 wants to merge 1 commit intoPaddlePaddle:masterfrom
Aidenwu0209:api-compat-76301-no155-bce-with-logits-alias
Open

[API Compatibility No.155] Keep input/target alias for bce_with_logits-part#846
Aidenwu0209 wants to merge 1 commit intoPaddlePaddle:masterfrom
Aidenwu0209:api-compat-76301-no155-bce-with-logits-alias

Conversation

@Aidenwu0209
Copy link
Copy Markdown
Contributor

PR Category

User Experience

PR Types

New features

Description

@paddle-bot
Copy link
Copy Markdown

paddle-bot bot commented Mar 5, 2026

Thanks for your contribution!

@Aidenwu0209
Copy link
Copy Markdown
Contributor Author

已定位本次失败原因:当前 CI 使用的 nightly paddle 还未包含 No.155 在 Paddle 侧的 alias 改动(Paddle PR: PaddlePaddle/Paddle#78140 目前仍为 OPEN)。\n\n在本地同版本环境可复现:paddle.nn.functional.binary_cross_entropy_with_logits(input=..., target=...) 报 TypeError: unexpected keyword argument 'input',因此触发 PR-CI-GPU-UnitTest 失败。\n\n按 #76301 说明,这类 PaConvert PR 需要等 Paddle PR 合入并经过 nightly 同步(通常次日)后再重跑 CI。Paddle 合入后我会第一时间重新触发本 PR CI。

@Aidenwu0209
Copy link
Copy Markdown
Contributor Author

@luotao1 CI通过了

},
"torch.nn.functional.binary_cross_entropy_with_logits": {
"Matcher": "SizeAverageMatcher",
"Matcher": "BCEWithLogitsAliasMatcher",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

需要修改成ChangePrefixMatcher,目前size_average/reduce差异使其无法对齐,你还需要完成这个事情,才能完成这几个API的对齐。

PaddlePaddle/Paddle#78134 (comment)

@Aidenwu0209 Aidenwu0209 force-pushed the api-compat-76301-no155-bce-with-logits-alias branch 5 times, most recently from 4007bc5 to e4d20fa Compare March 31, 2026 06:04
@Aidenwu0209 Aidenwu0209 force-pushed the api-compat-76301-no155-bce-with-logits-alias branch from e4d20fa to e3009a3 Compare March 31, 2026 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers HappyOpenSource 快乐开源活动issue与PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants