Browse Source

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

GitOrigin-RevId: 0d7126641b
release-1.11.1
Megvii Engine Team 2 years ago
parent
commit
d5688c3d38
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      imperative/python/megengine/functional/debug_param.py

+ 8
- 0
imperative/python/megengine/functional/debug_param.py View File

@@ -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: def get_execution_strategy() -> Strategy:
r"""Returns the execution strategy of :class:`~.module.Conv2d` and :func:`~.matmul` r"""Returns the execution strategy of :class:`~.module.Conv2d` and :func:`~.matmul`


@@ -36,6 +40,10 @@ def get_execution_strategy() -> Strategy:
return strategy return strategy




@deprecated(
version="1.10",
reason="use ``megengine.config.benchmark_kernel`` and ``megengine.config.deterministic_kernel`` instead",
)
def set_execution_strategy(option): def set_execution_strategy(option):
r"""Sets the execution strategy of :class:`~.module.Conv2d` and :func:`~.matmul` r"""Sets the execution strategy of :class:`~.module.Conv2d` and :func:`~.matmul`




Loading…
Cancel
Save