Skip to content

Commit 613fa9e

Browse files
authored
fix dead link and wrong description (PaddlePaddle#1020)
1 parent 5d5b4ad commit 613fa9e

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

doc/fluid/advanced_usage/design_idea/fluid_design_idea.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,13 @@ prob = ie()
100100
`BlockDesc`中包含本地变量的定义 [vars](../../api_guides/low_level/program.html#variable),和一系列的operator`ops`
101101

102102
```cpp
103-
message BlockDesc {
104-
required int32 parent = 1;
105-
repeated VarDesc vars = 2;
106-
repeated OpDesc ops = 3;
103+
message BlockDesc {
104+
required int32 idx = 1;
105+
required int32 parent_idx = 2;
106+
repeated VarDesc vars = 3;
107+
repeated OpDesc ops = 4;
107108
}
109+
108110
```
109111
parent ID表示父块,因此block中的操作符可以引用本地定义的变量,也可以引用祖先块中定义的变量。
110112

doc/fluid/advanced_usage/design_idea/fluid_design_idea_en.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,11 @@ The block and program information described by the user is saved in Fluid in [pr
101101
`BlockDesc` contains the definition of the local variables `vars`, and a series of operators `ops`:
102102

103103
```cpp
104-
message BlockDesc {
105-
required int32 parent = 1;
106-
repeated VarDesc vars = 2;
107-
repeated OpDesc ops = 3;
104+
message BlockDesc {
105+
required int32 idx = 1;
106+
required int32 parent_idx = 2;
107+
repeated VarDesc vars = 3;
108+
repeated OpDesc ops = 4;
108109
}
109110
```
110111
The parent ID represents the parent block, so the operators in the block can not only reference local variables, but also reference variables defined in the ancestor block.

doc/fluid/user_guides/howto/basic_concept/lod_tensor.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ recursive_seq_lens 是一个双层嵌套列表,也就是列表的列表,最
255255

256256
**定义计算过程**
257257

258-
layers.sequence_expand通过获取 y 的 lod 值对 x 的数据进行扩充,关于 :code:`fluid.layers.sequence_expand` 的功能说明,请先阅读 :ref:`api_fluid_layers_sequence_expand` 。
258+
layers.sequence_expand通过获取 y 的 lod 值对 x 的数据进行扩充,关于 :code:`fluid.layers.sequence_expand` 的功能说明,请先阅读 :ref:`cn_api_fluid_layers_sequence_expand` 。
259259

260260
序列扩充代码实现:
261261

@@ -279,7 +279,7 @@ layers.sequence_expand通过获取 y 的 lod 值对 x 的数据进行扩充,
279279

280280
这里我们调用 :code:`fluid.create_lod_tensor` 创建 :code:`sequence_expand` 的输入数据,通过定义 y_d 的 LoD 值,对 x_d 进行扩充。其中,输出值只与 y_d 的 LoD 值有关,y_d 的 data 值在这里并不参与计算,维度上与LoD[-1]一致即可。
281281

282-
:code:`fluid.create_lod_tensor()` 的使用说明请参考 :ref:`api_fluid_create_lod_tensor` 。
282+
:code:`fluid.create_lod_tensor()` 的使用说明请参考 :ref:`cn_api_fluid_create_lod_tensor` 。
283283

284284
实现代码如下:
285285

0 commit comments

Comments
 (0)