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`