From 0980d8f18c4081a161ed436690c6cfd3e651cbb6 Mon Sep 17 00:00:00 2001 From: lvmingfu <630944715@qq.com> Date: Tue, 1 Sep 2020 11:35:43 +0800 Subject: [PATCH] modify files in docs and tutorials --- docs/source_en/design.rst | 3 ++- tutorials/source_en/advanced_use/summary_record.md | 6 +++--- tutorials/source_en/index.rst | 7 +++++++ tutorials/source_en/use/custom_operator.md | 2 +- tutorials/source_zh_cn/advanced_use/serving.md | 3 ++- tutorials/source_zh_cn/advanced_use/summary_record.md | 6 +++--- 6 files changed, 18 insertions(+), 9 deletions(-) diff --git a/docs/source_en/design.rst b/docs/source_en/design.rst index 1802815b..a34e1d08 100644 --- a/docs/source_en/design.rst +++ b/docs/source_en/design.rst @@ -1,9 +1,10 @@ -design +Design =========== .. toctree:: :maxdepth: 1 architecture + design/mindinsight/training_visual_design design/mindinsight/graph_visual_design design/mindinsight/tensor_visual_design \ No newline at end of file diff --git a/tutorials/source_en/advanced_use/summary_record.md b/tutorials/source_en/advanced_use/summary_record.md index dc09b810..c8e52b40 100644 --- a/tutorials/source_en/advanced_use/summary_record.md +++ b/tutorials/source_en/advanced_use/summary_record.md @@ -341,7 +341,7 @@ For more parameter Settings, see the [MindInsight related commands](https://www. If the custom callback use `SummaryRecord`, it can not be used with `SummaryCollector` at the same time. Right code: - ```python3 + ``` ... summary_collector = SummaryCollector('./summary_dir') model.train(epoch=2, train_dataset, callbacks=[summary_collector]) @@ -350,7 +350,7 @@ For more parameter Settings, see the [MindInsight related commands](https://www. ``` Wrong code: - ```python3 + ``` ... summary_collector1 = SummaryCollector('./summary_dir1') summary_collector2 = SummaryCollector('./summary_dir2') @@ -358,7 +358,7 @@ For more parameter Settings, see the [MindInsight related commands](https://www. ``` Wrong code: - ```python3 + ``` ... # Note: the 'ConfusionMatrixCallback' is user-defined, and it uses SummaryRecord to record data. confusion_callback = ConfusionMatrixCallback('./summary_dir1') diff --git a/tutorials/source_en/index.rst b/tutorials/source_en/index.rst index 074a8a1b..402105ab 100644 --- a/tutorials/source_en/index.rst +++ b/tutorials/source_en/index.rst @@ -51,6 +51,13 @@ MindSpore Tutorials advanced_use/graph_kernel_fusion advanced_use/quantization_aware +.. toctree:: + :glob: + :maxdepth: 1 + :caption: Inference Service + + advanced_use/serving + .. toctree:: :glob: :maxdepth: 1 diff --git a/tutorials/source_en/use/custom_operator.md b/tutorials/source_en/use/custom_operator.md index 7e58182b..2cbf651a 100644 --- a/tutorials/source_en/use/custom_operator.md +++ b/tutorials/source_en/use/custom_operator.md @@ -81,7 +81,7 @@ The entry function of an operator describes the internal process of compiling th 4. Call `cce_build_code` to compile and generate an operator binary file. > The input parameters of the entry function require the input information of each operator, output information of each operator, operator attributes (optional), and `kernel_name` (name of the generated operator binary file). The input and output information is encapsulated in dictionaries, including the input and output shape and dtype when the operator is called on the network. -For details about TBE operator development, visit the [TBE website]((https://support.huaweicloud.com/odevg-A800_3000_3010/atlaste_10_0063.html)). For details about how to debug and optimize the TBE operator, visit the [Mind Studio website](https://support.huaweicloud.com/usermanual-mindstudioc73/atlasmindstudio_02_0043.html). +For details about TBE operator development, visit the [TBE website](https://support.huaweicloud.com/odevg-A800_3000_3010/atlaste_10_0063.html). For details about how to debug and optimize the TBE operator, visit the [Mind Studio website](https://support.huaweicloud.com/usermanual-mindstudioc73/atlasmindstudio_02_0043.html). ### Registering the Operator Information diff --git a/tutorials/source_zh_cn/advanced_use/serving.md b/tutorials/source_zh_cn/advanced_use/serving.md index 37f24306..43dc1c55 100644 --- a/tutorials/source_zh_cn/advanced_use/serving.md +++ b/tutorials/source_zh_cn/advanced_use/serving.md @@ -107,7 +107,8 @@ ms client received: ./ms_client --target=localhost:5500 ``` 显示如下返回值说明Serving服务已正确执行Add网络的推理。 - ```Compute [[1, 2], [3, 4]] + [[1, 2], [3, 4]] + ``` + Compute [[1, 2], [3, 4]] + [[1, 2], [3, 4]] Add result is 2 4 6 8 client received: RPC OK ``` diff --git a/tutorials/source_zh_cn/advanced_use/summary_record.md b/tutorials/source_zh_cn/advanced_use/summary_record.md index e76ff8e7..16c459c1 100644 --- a/tutorials/source_zh_cn/advanced_use/summary_record.md +++ b/tutorials/source_zh_cn/advanced_use/summary_record.md @@ -346,7 +346,7 @@ mindinsight stop 自定义callback中如果使用 `SummaryRecord`,则其不能和 `SummaryCollector` 同时使用。 正确代码: - ```python3 + ``` ... summary_collector = SummaryCollector('./summary_dir') model.train(epoch=2, train_dataset, callbacks=[summary_collector]) @@ -356,7 +356,7 @@ mindinsight stop ``` 错误代码: - ```python3 + ``` ... summary_collector1 = SummaryCollector('./summary_dir1') summary_collector2 = SummaryCollector('./summary_dir2') @@ -364,7 +364,7 @@ mindinsight stop ``` 错误代码: - ```python3 + ``` ... # Note: the 'ConfusionMatrixCallback' is user-defined, and it uses SummaryRecord to record data. confusion_callback = ConfusionMatrixCallback('./summary_dir1') -- GitLab