diff --git a/api/source_en/api/python/mindinsight/mindinsight.profiler.rst b/api/source_en/api/python/mindinsight/mindinsight.profiler.rst deleted file mode 100644 index f91d7bb4061fb422d94f4c5e8a0f9afd49dc4034..0000000000000000000000000000000000000000 --- a/api/source_en/api/python/mindinsight/mindinsight.profiler.rst +++ /dev/null @@ -1,5 +0,0 @@ -mindinsight.profiler -====================== - -.. automodule:: mindinsight.profiler - :members: \ No newline at end of file diff --git a/api/source_en/api/python/mindspore/mindspore.profiler.rst b/api/source_en/api/python/mindspore/mindspore.profiler.rst new file mode 100644 index 0000000000000000000000000000000000000000..33122b6ff76b4efd65bc9050e709da0feda129bf --- /dev/null +++ b/api/source_en/api/python/mindspore/mindspore.profiler.rst @@ -0,0 +1,5 @@ +mindspore.profiler +================== + +.. automodule:: mindspore.profiler + :members: \ No newline at end of file diff --git a/api/source_en/index.rst b/api/source_en/index.rst index c846e55e900ae6203f97cd93c1bf8ffc914dbaa6..e5231978d7184091445b1ce1cc586577deb69363 100644 --- a/api/source_en/index.rst +++ b/api/source_en/index.rst @@ -28,9 +28,10 @@ MindSpore API api/python/mindspore/mindspore.dataset.transforms api/python/mindspore/mindspore.dataset.transforms.vision api/python/mindspore/mindspore.mindrecord + api/python/mindspore/mindspore.profiler api/python/mindinsight/mindinsight.lineagemgr - api/python/mindinsight/mindinsight.profiler + api/python/mindarmour/mindarmour api/python/mindarmour/mindarmour.utils diff --git a/api/source_zh_cn/api/python/mindinsight/mindinsight.profiler.rst b/api/source_zh_cn/api/python/mindinsight/mindinsight.profiler.rst deleted file mode 100644 index f91d7bb4061fb422d94f4c5e8a0f9afd49dc4034..0000000000000000000000000000000000000000 --- a/api/source_zh_cn/api/python/mindinsight/mindinsight.profiler.rst +++ /dev/null @@ -1,5 +0,0 @@ -mindinsight.profiler -====================== - -.. automodule:: mindinsight.profiler - :members: \ No newline at end of file diff --git a/api/source_zh_cn/api/python/mindspore/mindspore.profiler.rst b/api/source_zh_cn/api/python/mindspore/mindspore.profiler.rst new file mode 100644 index 0000000000000000000000000000000000000000..33122b6ff76b4efd65bc9050e709da0feda129bf --- /dev/null +++ b/api/source_zh_cn/api/python/mindspore/mindspore.profiler.rst @@ -0,0 +1,5 @@ +mindspore.profiler +================== + +.. automodule:: mindspore.profiler + :members: \ No newline at end of file diff --git a/api/source_zh_cn/index.rst b/api/source_zh_cn/index.rst index 5be66f4af2e6653ee1d92d25d24270041abaa92e..e6656f49d1ea7dafbf81329bf6bdff89bb5dc384 100644 --- a/api/source_zh_cn/index.rst +++ b/api/source_zh_cn/index.rst @@ -28,9 +28,10 @@ MindSpore API api/python/mindspore/mindspore.dataset.transforms api/python/mindspore/mindspore.dataset.transforms.vision api/python/mindspore/mindspore.mindrecord + api/python/mindspore/mindspore.profiler api/python/mindinsight/mindinsight.lineagemgr - api/python/mindinsight/mindinsight.profiler + api/python/mindarmour/mindarmour api/python/mindarmour/mindarmour.utils diff --git a/tutorials/source_en/advanced_use/performance_profiling.md b/tutorials/source_en/advanced_use/performance_profiling.md index c517dbd767d3872b99a0463a1649e59fd837d6f9..b8cd049a9f9338e1fba399c9e7bc244ec5808969 100644 --- a/tutorials/source_en/advanced_use/performance_profiling.md +++ b/tutorials/source_en/advanced_use/performance_profiling.md @@ -29,12 +29,12 @@ Performance data like operators' execution time is recorded in files and can be ## Preparing the Training Script -To enable the performance profiling of neural networks, MindInsight Profiler APIs should be added into the script. At first, the MindInsight `Profiler` object need to be set after set context and before the network initialization. Then, at the end of the training, `Profiler.analyse()` should be called to finish profiling and generate the perforamnce analyse results. +To enable the performance profiling of neural networks, MindSpore Profiler APIs should be added into the script. At first, the MindSpore `Profiler` object need to be set after set context and before the network initialization. Then, at the end of the training, `Profiler.analyse()` should be called to finish profiling and generate the perforamnce analyse results. The sample code is as follows: ```python -from mindinsight.profiler import Profiler +from mindspore.profiler import Profiler from mindspore import Model, nn, context diff --git a/tutorials/source_zh_cn/advanced_use/performance_profiling.md b/tutorials/source_zh_cn/advanced_use/performance_profiling.md index 07d6c24219c94813544932f09e898fbffa94caa0..0d8fb2d26e5e56c578a7f95860d039f73bf2ba63 100644 --- a/tutorials/source_zh_cn/advanced_use/performance_profiling.md +++ b/tutorials/source_zh_cn/advanced_use/performance_profiling.md @@ -30,14 +30,14 @@ ## 准备训练脚本 -为了收集神经网络的性能数据,需要在训练脚本中添加MindInsight Profiler相关接口。 -- 在`set_context`之后和初始化网络之前,需要初始化MindInsight `Profiler`对象。 +为了收集神经网络的性能数据,需要在训练脚本中添加MindSpore Profiler相关接口。 +- 在`set_context`之后和初始化网络之前,需要初始化MindSpore `Profiler`对象。 - 在训练结束后,调用`Profiler.analyse()`停止性能数据收集并生成性能分析结果。 样例代码如下: ```python -from mindinsight.profiler import Profiler +from mindspore.profiler import Profiler from mindspore import Model, nn, context