提交 d5688c3d 编写于 作者: M Megvii Engine Team

chore(mge/functional): deprecate debug_param and prefer config

GitOrigin-RevId: 0d7126641b467f4d33b71c52824c0b384830f1c2
上级 9bb2e395
......@@ -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`
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册