Skip to content

[API Compatibility No.186] Keep target for torch.nn.functional.mse_loss in PaConvert -part#845

Open
Aidenwu0209 wants to merge 1 commit intoPaddlePaddle:masterfrom
Aidenwu0209:api-compat-76301-no186-mse-loss-target-alias
Open

[API Compatibility No.186] Keep target for torch.nn.functional.mse_loss in PaConvert -part#845
Aidenwu0209 wants to merge 1 commit intoPaddlePaddle:masterfrom
Aidenwu0209:api-compat-76301-no186-mse-loss-target-alias

Conversation

@Aidenwu0209
Copy link
Contributor

@Aidenwu0209 Aidenwu0209 commented Mar 5, 2026

PR Category

User Experience

PR Types

New features

PR Docs

PR APIs

torch.nn.functional.mse_loss

Description

  • Remove kwargs_change: {target: label} from torch.nn.functional.mse_loss mapping.
  • Keep SizeAverageMatcher behavior for size_average/reduce/reduction, while preserving PyTorch-style target in converted Paddle code.
  • This aligns with Paddle side alias support: paddle.nn.functional.mse_loss(target=...).

@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