Browse Source

fix profiler document error description

r1.7
mahequn123 4 years ago
parent
commit
3bc3cf803a
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      docs/api/api_python/mindspore.profiler.rst
  2. +1
    -1
      mindspore/python/mindspore/profiler/profiling.py

+ 1
- 1
docs/api/api_python/mindspore.profiler.rst View File

@@ -33,7 +33,7 @@ mindspore.profiler

- **RuntimeError** – profiler已经开启。
- **RuntimeError** – 停止Minddata采集后,不支持重复开启。
- **RuntimeError** – 如果start_profile参数设置为True。
- **RuntimeError** – 如果start_profile参数未设置或设置为True。

.. py:method:: stop()



+ 1
- 1
mindspore/python/mindspore/profiler/profiling.py View File

@@ -563,7 +563,7 @@ class Profiler:
Raises:
RuntimeError: If the profiler has already started.
RuntimeError: If MD profiling has stopped, repeated start action is not supported.
RuntimeError: If the start_profile value is set to False.
RuntimeError: If the start_profile parameter is not set or is set to True.

Examples:
>>> class StopAtStep(Callback):


Loading…
Cancel
Save