forked from huawei/mindspore2022
!32388 fix Profiler start error description
Merge pull request !32388 from mahequn123/error_des
This commit is contained in:
commit
9df72e03f5
|
|
@ -33,7 +33,7 @@ mindspore.profiler
|
||||||
|
|
||||||
- **RuntimeError** – profiler已经开启。
|
- **RuntimeError** – profiler已经开启。
|
||||||
- **RuntimeError** – 停止Minddata采集后,不支持重复开启。
|
- **RuntimeError** – 停止Minddata采集后,不支持重复开启。
|
||||||
- **RuntimeError** – 如果start_profile参数设置为True。
|
- **RuntimeError** – 如果start_profile参数未设置或设置为True。
|
||||||
|
|
||||||
.. py:method:: stop()
|
.. py:method:: stop()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -553,7 +553,7 @@ class Profiler:
|
||||||
Raises:
|
Raises:
|
||||||
RuntimeError: If the profiler has already started.
|
RuntimeError: If the profiler has already started.
|
||||||
RuntimeError: If MD profiling has stopped, repeated start action is not supported.
|
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:
|
Examples:
|
||||||
>>> class StopAtStep(Callback):
|
>>> class StopAtStep(Callback):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue