From d5688c3d38e2aea545ad262ac95365868524daf9 Mon Sep 17 00:00:00 2001 From: Megvii Engine Team Date: Thu, 1 Sep 2022 13:21:43 +0800 Subject: [PATCH] chore(mge/functional): deprecate debug_param and prefer config GitOrigin-RevId: 0d7126641b467f4d33b71c52824c0b384830f1c2 --- imperative/python/megengine/functional/debug_param.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/imperative/python/megengine/functional/debug_param.py b/imperative/python/megengine/functional/debug_param.py index 66cfa4e6..db838b46 100644 --- a/imperative/python/megengine/functional/debug_param.py +++ b/imperative/python/megengine/functional/debug_param.py @@ -21,6 +21,10 @@ _valid_string_option = { } +@deprecated( + version="1.10", + reason="use ``megengine.config.benchmark_kernel`` and ``megengine.config.deterministic_kernel`` instead", +) def get_execution_strategy() -> Strategy: r"""Returns the execution strategy of :class:`~.module.Conv2d` and :func:`~.matmul` @@ -36,6 +40,10 @@ def get_execution_strategy() -> Strategy: return strategy +@deprecated( + version="1.10", + reason="use ``megengine.config.benchmark_kernel`` and ``megengine.config.deterministic_kernel`` instead", +) def set_execution_strategy(option): r"""Sets the execution strategy of :class:`~.module.Conv2d` and :func:`~.matmul`