mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 00:17:25 +08:00
[Cleanup] Replace torch proxy alias with public compat API (#7348)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user