diff --git a/tutorials/source_en/compile/static_graph.md b/tutorials/source_en/compile/static_graph.md index 6723df130f6d99191aad590bb5213ffc2e4346bd..326255398def2452979ea2345b0dd949c6bf29e6 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 3979de263f24ffb02687045d69825cb399d53b98..7db227bbcdd6444937cb544a7f280d0d910afd41 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 fb6291fb99edc5d00195f84f457bbaf4ef0d7984..8891051441ea535e679b1d9c37ba8bfcf8e15a48 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算子实现代码逻辑。