“ffcf81db9f7a5a0806ddb438be0cbc6291753ef7”上不存在“...reference/apis/js-apis-data-unifiedDataChannel.md”
提交 0980d8f1 编写于 作者: L lvmingfu

modify files in docs and tutorials

上级 89a18f7b
design Design
=========== ===========
.. toctree:: .. toctree::
:maxdepth: 1 :maxdepth: 1
architecture architecture
design/mindinsight/training_visual_design
design/mindinsight/graph_visual_design design/mindinsight/graph_visual_design
design/mindinsight/tensor_visual_design design/mindinsight/tensor_visual_design
\ No newline at end of file
...@@ -341,7 +341,7 @@ For more parameter Settings, see the [MindInsight related commands](https://www. ...@@ -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. If the custom callback use `SummaryRecord`, it can not be used with `SummaryCollector` at the same time.
Right code: Right code:
```python3 ```
... ...
summary_collector = SummaryCollector('./summary_dir') summary_collector = SummaryCollector('./summary_dir')
model.train(epoch=2, train_dataset, callbacks=[summary_collector]) model.train(epoch=2, train_dataset, callbacks=[summary_collector])
...@@ -350,7 +350,7 @@ For more parameter Settings, see the [MindInsight related commands](https://www. ...@@ -350,7 +350,7 @@ For more parameter Settings, see the [MindInsight related commands](https://www.
``` ```
Wrong code: Wrong code:
```python3 ```
... ...
summary_collector1 = SummaryCollector('./summary_dir1') summary_collector1 = SummaryCollector('./summary_dir1')
summary_collector2 = SummaryCollector('./summary_dir2') summary_collector2 = SummaryCollector('./summary_dir2')
...@@ -358,7 +358,7 @@ For more parameter Settings, see the [MindInsight related commands](https://www. ...@@ -358,7 +358,7 @@ For more parameter Settings, see the [MindInsight related commands](https://www.
``` ```
Wrong code: Wrong code:
```python3 ```
... ...
# Note: the 'ConfusionMatrixCallback' is user-defined, and it uses SummaryRecord to record data. # Note: the 'ConfusionMatrixCallback' is user-defined, and it uses SummaryRecord to record data.
confusion_callback = ConfusionMatrixCallback('./summary_dir1') confusion_callback = ConfusionMatrixCallback('./summary_dir1')
......
...@@ -51,6 +51,13 @@ MindSpore Tutorials ...@@ -51,6 +51,13 @@ MindSpore Tutorials
advanced_use/graph_kernel_fusion advanced_use/graph_kernel_fusion
advanced_use/quantization_aware advanced_use/quantization_aware
.. toctree::
:glob:
:maxdepth: 1
:caption: Inference Service
advanced_use/serving
.. toctree:: .. toctree::
:glob: :glob:
:maxdepth: 1 :maxdepth: 1
......
...@@ -81,7 +81,7 @@ The entry function of an operator describes the internal process of compiling th ...@@ -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. 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. > 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 ### Registering the Operator Information
......
...@@ -107,7 +107,8 @@ ms client received: ...@@ -107,7 +107,8 @@ ms client received:
./ms_client --target=localhost:5500 ./ms_client --target=localhost:5500
``` ```
显示如下返回值说明Serving服务已正确执行Add网络的推理。 显示如下返回值说明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 Add result is 2 4 6 8
client received: RPC OK client received: RPC OK
``` ```
......
...@@ -346,7 +346,7 @@ mindinsight stop ...@@ -346,7 +346,7 @@ mindinsight stop
自定义callback中如果使用 `SummaryRecord`,则其不能和 `SummaryCollector` 同时使用。 自定义callback中如果使用 `SummaryRecord`,则其不能和 `SummaryCollector` 同时使用。
正确代码: 正确代码:
```python3 ```
... ...
summary_collector = SummaryCollector('./summary_dir') summary_collector = SummaryCollector('./summary_dir')
model.train(epoch=2, train_dataset, callbacks=[summary_collector]) model.train(epoch=2, train_dataset, callbacks=[summary_collector])
...@@ -356,7 +356,7 @@ mindinsight stop ...@@ -356,7 +356,7 @@ mindinsight stop
``` ```
错误代码: 错误代码:
```python3 ```
... ...
summary_collector1 = SummaryCollector('./summary_dir1') summary_collector1 = SummaryCollector('./summary_dir1')
summary_collector2 = SummaryCollector('./summary_dir2') summary_collector2 = SummaryCollector('./summary_dir2')
...@@ -364,7 +364,7 @@ mindinsight stop ...@@ -364,7 +364,7 @@ mindinsight stop
``` ```
错误代码: 错误代码:
```python3 ```
... ...
# Note: the 'ConfusionMatrixCallback' is user-defined, and it uses SummaryRecord to record data. # Note: the 'ConfusionMatrixCallback' is user-defined, and it uses SummaryRecord to record data.
confusion_callback = ConfusionMatrixCallback('./summary_dir1') confusion_callback = ConfusionMatrixCallback('./summary_dir1')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册