Skip to content

Commit 13db5a6

Browse files
authored
Change LOD_TENSOR_ARRAY to DENSE_TENSOR_ARRAY (#6947)
1 parent 3b48602 commit 13db5a6

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docs/api_guides/low_level/layers/control_flow.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ While
3434
While 循环,当条件判断为真时,循环执行 :code:`While` 控制流所属 :code:`block` 内的逻辑,条件判断为假时退出循环。与之相关的 API 有
3535

3636
* :ref:`cn_api_fluid_layers_increment` :累加 API,通常用于对循环次数进行计数;
37-
* :ref:`cn_api_fluid_layers_array_read` :从 :code:`LOD_TENSOR_ARRAY` 中指定的位置读入 Variable,进行计算;
38-
* :ref:`cn_api_fluid_layers_array_write` :将 Variable 写回到 :code:`LOD_TENSOR_ARRAY` 指定的位置,存储计算结果。
37+
* :ref:`cn_api_fluid_layers_array_read` :从 :code:`DENSE_TENSOR_ARRAY` 中指定的位置读入 Variable,进行计算;
38+
* :ref:`cn_api_fluid_layers_array_write` :将 Variable 写回到 :code:`DENSE_TENSOR_ARRAY` 指定的位置,存储计算结果。
3939

4040
请参考 :ref:`cn_api_fluid_layers_While`
4141

docs/api_guides/low_level/layers/control_flow_en.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ While
3434
When the condition is true, repeatedly execute logic in the :code:`block` which :code:`While` flow belongs to until the condition is judged to be false and the loop will be ended. The related APIs are as follows:
3535

3636
* :ref:`api_fluid_layers_increment` : It is usually used to count the number of loops;
37-
* :ref:`api_fluid_layers_array_read` : Reads Variable from the specified location in :code:`LOD_TENSOR_ARRAY` to perform calculations;
38-
* :ref:`api_fluid_layers_array_write` : Writes the Variable back to the specified location in :code:`LOD_TENSOR_ARRAY` and stores the result of the calculation.
37+
* :ref:`api_fluid_layers_array_read` : Reads Variable from the specified location in :code:`DENSE_TENSOR_ARRAY` to perform calculations;
38+
* :ref:`api_fluid_layers_array_write` : Writes the Variable back to the specified location in :code:`DENSE_TENSOR_ARRAY` and stores the result of the calculation.
3939

4040
Please refer to :ref:`api_fluid_layers_While`
4141

docs/design/concepts/var_desc.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The computation `Program` consists of nested `Blocks`. Each `Block` will consist
3535

3636
## Definition of VarType
3737

38-
A VarDesc should have a name, type and whether or not it is persistable. There are different kinds of variable types supported in PaddlePaddle, apart from the POD_Types like: `LOD_TENSOR`, `SELECTED_ROWS`, `FEED_MINIBATCH`, `FETCH_LIST`, `STEP_SCOPES`, `LOD_RANK_TABLE`, `LOD_TENSOR_ARRAY`, `PLACE_LIST`, `READER` and `CHANNEL`. These are declared inside `VarType`. A `VarDesc` then looks as the following:
38+
A VarDesc should have a name, type and whether or not it is persistable. There are different kinds of variable types supported in PaddlePaddle, apart from the POD_Types like: `LOD_TENSOR`, `SELECTED_ROWS`, `FEED_MINIBATCH`, `FETCH_LIST`, `STEP_SCOPES`, `LOD_RANK_TABLE`, `DENSE_TENSOR_ARRAY`, `PLACE_LIST`, `READER` and `CHANNEL`. These are declared inside `VarType`. A `VarDesc` then looks as the following:
3939

4040
```proto
4141
message VarDesc {
@@ -75,7 +75,7 @@ enum Type {
7575
FETCH_LIST = 10;
7676
STEP_SCOPES = 11;
7777
LOD_RANK_TABLE = 12;
78-
LOD_TENSOR_ARRAY = 13;
78+
DENSE_TENSOR_ARRAY = 13;
7979
PLACE_LIST = 14;
8080
READER = 15;
8181
CHANNEL = 16;

0 commit comments

Comments
 (0)