Skip to content

Commit 6ac8383

Browse files
committed
"fix based comments"
1 parent 0d86f13 commit 6ac8383

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

paddle/fluid/operators/uniform_random_batch_size_like_op.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class UniformRandomBatchSizeLikeOpMaker : public BatchSizeLikeOpMaker {
3838
UniformRandomBatchSizeLike operator.
3939
4040
This operator initializes a tensor with the same batch_size as the Input tensor
41-
with random values sampled from a uniform distribution.
41+
with random values sampled from a uniform distribution.
4242
4343
)DOC");
4444
AddAttr<float>("min",

python/paddle/fluid/framework.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1130,6 +1130,8 @@ def get_desc(self):
11301130

11311131
def clone(self, for_test=False):
11321132
"""Clone the Program object
1133+
Args:
1134+
for_test(bool): indicate whether clone for test.
11331135
11341136
Set for_test to False when we want to clone the program for training.
11351137
Set for_test to True when we want to clone the program for testing.
@@ -1140,8 +1142,9 @@ def clone(self, for_test=False):
11401142
the is_test attributes in these operators will be set to True for
11411143
testing purposes, otherwise, they remain unchanged.
11421144
1143-
Returns(Program):
1144-
The cloned Program object.
1145+
Returns:
1146+
Program: The cloned Program object.
1147+
11451148
"""
11461149
if for_test:
11471150
p = self.inference_optimize()
@@ -1259,6 +1262,7 @@ def sync_with_cpp(self):
12591262
def copy_param_info_from(self, other):
12601263
"""
12611264
Copy the information of parameters from other program.
1265+
12621266
Args:
12631267
other(Program): Other program
12641268
@@ -1277,6 +1281,7 @@ def copy_param_info_from(self, other):
12771281
def copy_data_info_from(self, other):
12781282
"""
12791283
Copy the information of data variables from other program.
1284+
12801285
Args:
12811286
other(Program): Other program
12821287
@@ -1330,6 +1335,7 @@ def __str__(self):
13301335
def to_string(self, throw_on_error, with_details=False):
13311336
"""
13321337
To debug string.
1338+
13331339
Args:
13341340
throw_on_error(bool): raise exception when self is not initialized
13351341
when throw_on_error is True

python/paddle/fluid/layers/control_flow.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -823,8 +823,7 @@ def increment(x, value=1.0, in_place=True):
823823
in_place (bool): If the increment should be performed in-place.
824824
825825
Returns:
826-
Variable: The tensor variable storing the transformation of
827-
element-wise increment of each value in the input.
826+
Variable: The elementwise-incremented object.
828827
829828
Examples:
830829
.. code-block:: python

python/paddle/fluid/layers/nn.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2061,8 +2061,6 @@ def beam_search_decode(ids, scores, name=None):
20612061
based on the score of each id. This layer takes the output of beam search
20622062
layer as input and repack them into sentences.
20632063
2064-
${beam_search_decode}
2065-
20662064
Args:
20672065
ids (Variable): The selected ids, output of beam search layer.
20682066
scores (Variable): The associated scores of the ids, out put of beam

0 commit comments

Comments
 (0)