Skip to content

[API Compatibility No.188] Remove kwargs_change for nll_loss since Paddle now accepts target alias -part#844

Open
Aidenwu0209 wants to merge 1 commit intoPaddlePaddle:masterfrom
Aidenwu0209:api-compat-no188-nll-loss-part
Open

[API Compatibility No.188] Remove kwargs_change for nll_loss since Paddle now accepts target alias -part#844
Aidenwu0209 wants to merge 1 commit intoPaddlePaddle:masterfrom
Aidenwu0209:api-compat-no188-nll-loss-part

Conversation

@Aidenwu0209
Copy link
Contributor

Summary

  • Remove kwargs_change (target -> label) from torch.nn.functional.nll_loss mapping in api_mapping.json.
  • Paddle PR #78133 adds @param_one_alias([label, target]), so Paddle now natively accepts target as an alias.
  • Keep SizeAverageMatcher unchanged for deprecated size_average / reduce handling.

Related PRs

PR Category

User Experience

PR Types

New features

@paddle-bot
Copy link

paddle-bot bot commented Mar 5, 2026

Thanks for your contribution!

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