Skip to content

[API Compatibility] Add Four api: torch.nn.Module.register_forward_hook, torch.nn.Module.register_forward_pre_hook, torch.nn.modules.module._IncompatibleKeys and torch.optim.lr_scheduler.LRScheduler#905

Open
Manfredss wants to merge 2 commits into
PaddlePaddle:masterfrom
Manfredss:api_add

Conversation

@Manfredss

Copy link
Copy Markdown
Collaborator

PR Docs

Add torch.optim.lr_scheduler.LRScheduler and torch.nn.modules.module._IncompatibleKeys in api_mapping.json, change torch.nn.Module.register_forward_hook and torch.nn.Module.register_forward_pre_hook to ChangePrefixMatcher. Add test file for torch.optim.lr_scheduler.LRScheduler

PR APIs

torch.nn.Module.register_forward_hook
torch.nn.Module.register_forward_pre_hook
torch.nn.modules.module._IncompatibleKeys
torch.optim.lr_scheduler.LRScheduler

…h.optim.lr_scheduler.LRSchedule, add test file for torch.optim.lr_scheduler.LRSchedule
…ch.nn.Module.register_forward_pre_hook, enhance their tests
@paddle-bot

paddle-bot Bot commented Jul 24, 2026

Copy link
Copy Markdown

Thanks for your contribution!

@paddle-bot paddle-bot Bot added the contributor External developers label Jul 24, 2026
@Manfredss Manfredss self-assigned this Jul 24, 2026
@Manfredss
Manfredss requested a review from zhwesky2010 July 24, 2026 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant