[Cleanup] Replace torch proxy alias with public compat API (#7348)

This commit is contained in:
Nyako Shigure
2026-04-13 11:43:26 +08:00
committed by GitHub
parent cb03958b52
commit d659099415
20 changed files with 38 additions and 54 deletions
@@ -30,8 +30,8 @@ pytestmark = pytest.mark.filterwarnings(
"ignore:ast.Num is deprecated and will be removed in Python 3.14; use ast.Constant instead:DeprecationWarning"
)
if not hasattr(paddle, "compat"):
paddle.compat = types.SimpleNamespace(enable_torch_proxy=lambda **_: None)
if not hasattr(paddle, "enable_compat"):
paddle.enable_compat = lambda **_: None
warnings.filterwarnings(
"ignore",