[API Compatibility] Support ChangePrefixMatcher for aligned nn classes -part (#79539)
* [API Compatibility] Add torch-style aliases for aligned nn classes, Add AvgPool, BatchNorm, and MultiheadAttention aliases to paddle.nn so enable_compat(level=2) can dispatch ChangePrefixMatcher outputs to their compat implementations. * Add seven api to __all__ per reviewer suggestion * add fix for Tensor.split * Align 24 compat APIs with PyTorch semantics * revert to 0d4cb16 * Simplify ForbidKeywordsDecorator and align Tensor.split in api, not in separate logic
W
Wenfei (Charles) Qi committed
8bc0a2b32316b289b64c466e55021058d688e497
Parent: a2bc39a
Committed by GitHub <noreply@github.com>
on 7/27/2026, 3:14:29 AM