Browse Source

!32388 fix Profiler start error description

Merge pull request !32388 from mahequn123/error_des
pull/1/head
i-robot Gitee 4 years ago
parent
commit
9df72e03f5
No known key found for this signature in database GPG Key ID: 173E9B9CA92EEF8F
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

@@ -553,7 +553,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