diff --git a/docs/lite/docs/source_zh_cn/quick_start/one_hour_introduction.md b/docs/lite/docs/source_zh_cn/quick_start/one_hour_introduction.md index acbc04973e9e88870cced8bf87321a2cca1aea9b..a2f65fbb0f6bc37d796e67c5a4a85ee41af7fac6 100644 --- a/docs/lite/docs/source_zh_cn/quick_start/one_hour_introduction.md +++ b/docs/lite/docs/source_zh_cn/quick_start/one_hour_introduction.md @@ -141,7 +141,7 @@ mindspore-lite-{version}-linux-x64 以下载的模型为例,将模型`mobilenetv2.mindir`拷贝到转换工具所在目录,根据上述转换参数的说明,可以知道该模型的转换命令如下: ```bash - ./converter_lite --fmk=MINDIR --modelFile=mobilenetv2.mindir --outputFile=mobilenetv2 + ./converter_lite --fmk=MINDIR --modelFile=mobilenetv2.mindir --outputFile=mobilenetv2 ``` 执行命令后,若转换成功,结果显示如下,并在当前目录生成名为`mobilenetv2.ms`的新模型文件。 diff --git a/tutorials/source_en/compile/static_graph.md b/tutorials/source_en/compile/static_graph.md index a3eb32e7bbcdf1e78499dcd45aed8cd9ca5b7099..118db1c2f83e23f0699a8d95c31c86304ae25aa6 100644 --- a/tutorials/source_en/compile/static_graph.md +++ b/tutorials/source_en/compile/static_graph.md @@ -2226,7 +2226,7 @@ shape is (2, 2) The results are as follows: ``` text - net.m is 3 + net.m2 is 3 ``` - Set and modify Cell objects and jit_class objects in the static graph diff --git a/tutorials/source_en/model_infer/ms_infer/ms_infer_model_serving_infer.md b/tutorials/source_en/model_infer/ms_infer/ms_infer_model_serving_infer.md index 17b79d1819bf90339a76288c3ca9394ca7dcc731..1d4d23a1d09ea3ec392e3b393207c5901eb97015 100644 --- a/tutorials/source_en/model_infer/ms_infer/ms_infer_model_serving_infer.md +++ b/tutorials/source_en/model_infer/ms_infer/ms_infer_model_serving_infer.md @@ -117,7 +117,7 @@ docker ps After creating the container, user can start and enter the container, using the environment variable `DOCKER_NAME`: ```bash -docker exec -it $DOCKER_NAME bash +docker exec -it $DOCKER_NAME bash ``` ### Preparing a Model diff --git a/tutorials/source_zh_cn/compile/static_graph.md b/tutorials/source_zh_cn/compile/static_graph.md index f2a334b211e3d9340d9c1e55b863aedaceb9eadf..23b039e033a02c1fdfef3263f384c71f9526039b 100644 --- a/tutorials/source_zh_cn/compile/static_graph.md +++ b/tutorials/source_zh_cn/compile/static_graph.md @@ -1375,7 +1375,7 @@ In-place操作是指直接修改输入张量的内容,而不创建新的张量 由于x来自两个分支,表示的视图区域不唯一确定,当前方案不支持对这类场景的自动微分,会拦截报错,报错信息如下: ```text - In backpropagation, inplace modification of the output of view operations within control flow is not supported. + RuntimeError: In backpropagation, inplace modification of the output of view operations within control flow is not supported. ``` 对于这一类问题,可以通过将x.add_(2)分别添加在两个分支的view语句后来解决。对于复杂控制流,如果较难通过更改脚本明确in-place算子和view算子的对应关系,建议在静态图模式下,不使用view算子和in-place算子实现代码逻辑。