Skip to content

Commit 929ef67

Browse files
committed
Modify code style.
1 parent bc54870 commit 929ef67

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/api_guides/low_level/program.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Program
2323
Block
2424
=========
2525

26-
:code:`Block` 是高级语言中变量作用域的概念,类似C语言或Java语言中的一对大括号,其中包含局部变量定义和一系列指令或操作符.
26+
:code:`Block` 是高级语言中变量作用域的概念,类似 C 语言或 Java 语言中的一对大括号,其中包含局部变量定义和一系列指令或操作符.
2727

2828
:code:`Block` 是计算图中用于表示计算逻辑的基本单元。它包含一系列操作(:code:`Operator`)和计算对象(:code:`Tensor`),支持顺序执行、条件选择和循环执行等控制结构,从而构建复杂的计算流程。
2929

docs/api_guides/low_level/program_en.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ In PaddlePaddle, a Program is a static graph model, similar to programs in other
1616

1717
* Execute: An executor is invoked to obtain the computation results.
1818

19-
This approach allows for efficient execution but requires the entire network structure to be defined before running the program.
19+
This approach allows for efficient execution but requires the entire network structure to be defined before running the program.
2020

21-
* A :code:`Program` consists of nested :code:`Blocks`. The concept of a :code:`Block` can be likened to a pair of curly braces ``{}`` in languages like C++ or Java, or to an indented block in Python.
21+
* A :code:`Program` consists of nested :code:`Blocks`. The concept of a :code:`Block` can be likened to a pair of curly braces ``{}`` in languages like C++ or Java, or to an indented block in Python.
2222

2323
* The computation in the :code:`Block` is composed of three types of execution: sequential execution, conditional selection, and loop execution, which together form a complex computational logic.
2424

0 commit comments

Comments
 (0)