Skip to content

Commit 829e9a8

Browse files
authored
[Docathon][ApiLabel][task 1-4] clean some legacy concepts and api labels (#6206)
1 parent e92f2b3 commit 829e9a8

File tree

8 files changed

+9
-13
lines changed

8 files changed

+9
-13
lines changed

docs/advanced_guide/performance_improving/multinode_training_improving/cpu_train_best_practice.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
提高 CPU 使用率主要依赖 :code:`ParallelExecutor`,可以充分利用多个 CPU 的计算能力来加速计算。
1414

15-
API 详细使用方法参考 :ref:`cn_api_fluid_ParallelExecutor` ,简单实例用法:
15+
简单实例用法:
1616

1717
.. code-block:: python
1818

docs/api/paddle/static/BuildStrategy_cn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ BuildStrategy
55

66
.. py:class:: paddle.static.BuildStrategy
77
8-
``BuildStrategy`` 使用户更方便地控制 :ref:`cn_api_fluid_ParallelExecutor` 中计算图的建造方法,可通过设置 ``ParallelExecutor`` 中的 ``BuildStrategy`` 成员来实现此功能。
8+
``BuildStrategy`` 使用户更方便地控制 ``ParallelExecutor`` 中计算图的建造方法,可通过设置 ``ParallelExecutor`` 中的 ``BuildStrategy`` 成员来实现此功能。
99

1010
返回
1111
:::::::::

docs/api/paddle/static/Overview_cn.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ Executor 相关 API
4242

4343
" :ref:`BuildStrategy <cn_api_paddle_static_BuildStrategy>` ", "控制 ParallelExecutor 中计算图的建造方法"
4444
" :ref:`CompiledProgram <cn_api_paddle_static_CompiledProgram>` ", "转化和优化 Program 或 Graph"
45-
" :ref:`ExecutionStrategy <cn_api_fluid_ExecutionStrategy>` ", "调整 Executor 执行配置"
4645
" :ref:`Executor <cn_api_paddle_static_Executor>` ", "执行器"
47-
" :ref:`ParallelExecutor <cn_api_fluid_ParallelExecutor>` ", "支持基于数据并行的多节点模型训练和测试的执行器"
4846

4947
.. _about_nn:
5048

docs/api/paddle/static/Variable_cn.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,15 +212,15 @@ lod_level
212212
.. note::
213213
该属性是只读属性。
214214

215-
:ref:`api_guide_Variable` 的 ``LoD`` 信息,关于 ``LoD`` 可以参考 :ref:`api_fluid_LoDTensor` 相关内容
215+
:ref:`api_guide_Variable` 的 ``LoD`` 信息。
216216

217217
type
218218
'''''''''
219219

220220
.. note::
221221
该属性是只读属性。
222222

223-
:ref:`api_guide_Variable` 的内存模型,例如是::ref:`api_fluid_LoDTensor`,或者 SelectedRows。
223+
:ref:`api_guide_Variable` 的内存模型,例如是:``LoDTensor``,或者 ``SelectedRows``
224224

225225
ndim
226226
'''''''''

docs/api_guides/low_level/layers/data_in_out.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,4 @@ Fluid 支持在训练/预测阶段获取当前 batch 的数据。
2929
fetch 期望的输出变量,通过设置 :code:`return_numpy` 参数设置是否将输出数据转为 numpy array。
3030
:code:`return_numpy` 为 :code:`False` ,则返回 :code:`LoDTensor` 类型数据。
3131

32-
具体使用方式请参考相关 API 文档 :ref:`cn_api_fluid_executor_Executor` 和
33-
:ref:`cn_api_fluid_ParallelExecutor`。
32+
具体使用方式请参考相关 API 文档 :ref:`cn_api_paddle_static_Executor`。

docs/api_guides/low_level/layers/sequence.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
在深度学习领域许多问题涉及到对 `序列(sequence) <https://en.wikipedia.org/wiki/Sequence>`_ 的处理。
88
从 Wiki 上的释义可知,序列可以表征多种物理意义,但在深度学习中,最常见的仍然是"时间序列"——一个序列包含多个时间步的信息。
99

10-
在 Paddle Fluid 中,我们将序列表示为 :ref:`cn_api_fluid_LoDTensor`
10+
在 Paddle Fluid 中,我们将序列表示为 ``LoDTensor``
1111
因为一般进行神经网络计算时都是一个 batch 一个 batch 地计算,所以我们用一个 LoDTensor 来存储一个 mini batch 的序列。
1212
一个 LoDTensor 的第 0 维包含该 mini batch 中所有序列的所有时间步,并且用 LoD 来记录各个序列的长度,区分不同序列。
1313
而在运算时,还需要根据 LoD 信息将 LoDTensor 中一个 mini batch 的第 0 维拆开成多个序列。(具体请参考上述 LoD 相关的文档。)

docs/api_guides/low_level/layers/sequence_en.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Sequence
77
Many problems in the field of deep learning involve the processing of the `sequence <https://en.wikipedia.org/wiki/Sequence>`_.
88
From Wiki's definition, sequences can represent a variety of physical meanings, but in deep learning, the most common is still "time sequence" - a sequence containing information of multiple time steps.
99

10-
In Paddle Fluid, we represent the sequence as :ref:`api_fluid_LoDTensor`.
10+
In Paddle Fluid, we represent the sequence as ``LoDTensor``.
1111
Because the general neural network performs computing batch by batch, we use a LoDTensor to store a mini batch of sequences.
1212
The 0th dimension of a LoDTensor contains all the time steps of all sequences in the mini batch, and LoD is used to record the length of each sequence to distinguish different sequences.
1313
In the calculation, it is also necessary to split the 0th dimension of a mini batch in the LoDTensor into a number of sequences according to the LoD information. (Please refer to the LoD related documents for details. )

docs/api_guides/low_level/parallel_executor.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
**注意** :如果在 Reduce 模式下使用 :code:`CPU` 多线程执行 :code:`Program` , :code:`Program` 的参数在多个线程间是共享的,在某些模型上,Reduce 模式可以大幅节省内存。
3131

32-
鉴于模型的执行速率和模型结构及执行器的执行策略有关,:code:`ParallelExecutor` 允许你修改执行器的相关参数,例如线程池的规模( :code:`num_threads` )、为清除临时变量 :code:`num_iteration_per_drop_scope` 需要进行的循环次数。更多信息请参照 :ref:`cn_api_fluid_ExecutionStrategy` 。
32+
鉴于模型的执行速率和模型结构及执行器的执行策略有关,:code:`ParallelExecutor` 允许你修改执行器的相关参数,例如线程池的规模( :code:`num_threads` )、为清除临时变量 :code:`num_iteration_per_drop_scope` 需要进行的循环次数。
3333

3434

3535
.. code-block:: python
@@ -63,5 +63,4 @@
6363
train_loss, = train_exe.run(fetch_list=[loss.name], feed=feed_dict)
6464
test_loss, = test_exe.run(fetch_list=[loss.name], feed=feed_dict)
6565
- 相关 API :
66-
- :ref:`cn_api_fluid_ParallelExecutor`
67-
- :ref:`cn_api_fluid_BuildStrategy`
66+
- :ref:`cn_api_paddle_static_BuildStrategy`

0 commit comments

Comments
 (0)