Skip to content

Commit c58ba82

Browse files
author
yi.wu
committed
update
1 parent 7b54b30 commit c58ba82

File tree

5 files changed

+12
-14
lines changed

5 files changed

+12
-14
lines changed

paddle/fluid/operators/conv_transpose_op.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ Parameters(strides, paddings) are two elements. These two elements represent hei
156156
and width, respectively.
157157
The input(X) size and output(Out) size may be different.
158158
159-
Example:
159+
For an example:
160160
Input:
161161
Input shape: $(N, C_{in}, H_{in}, W_{in})$
162162
Filter shape: $(C_{in}, C_{out}, H_f, W_f)$

paddle/fluid/operators/crf_decoding_op.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,14 @@ sequence of observed tags.
5353
The output of this operator changes according to whether Input(Label) is given:
5454
5555
1. Input(Label) is given:
56-
5756
This happens in training. This operator is used to co-work with the chunk_eval
5857
operator.
59-
6058
When Input(Label) is given, the crf_decoding operator returns a row vector
6159
with shape [N x 1] whose values are fixed to be 0, indicating an incorrect
6260
prediction, or 1 indicating a tag is correctly predicted. Such an output is the
6361
input to chunk_eval operator.
6462
6563
2. Input(Label) is not given:
66-
6764
This is the standard decoding process.
6865
6966
The crf_decoding operator returns a row vector with shape [N x 1] whose values

paddle/fluid/operators/roi_pool_op.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,9 @@ The operator has three steps:
149149
150150
1. Dividing each region proposal into equal-sized sections with
151151
the pooled_width and pooled_height
152+
152153
2. Finding the largest value in each section
154+
153155
3. Copying these max values to the output buffer
154156
155157
ROI Pooling for Faster-RCNN. The link below is a further introduction:

python/paddle/fluid/layers/io.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,6 @@ def __exit__(self, exc_type, exc_val, exc_tb):
109109

110110
class ListenAndServ(object):
111111
"""
112-
ListenAndServ layer.
113-
114112
ListenAndServ is used to create a rpc server bind and listen
115113
on specific TCP port, this server will run the sub-block when
116114
received variables from clients.
@@ -121,6 +119,9 @@ class ListenAndServ(object):
121119
fan_in(int): how many client are expected to report to this server, default: 1.
122120
optimizer_mode(bool): whether to run the server as a parameter server, default: True.
123121
122+
Returns:
123+
None
124+
124125
Examples:
125126
.. code-block:: python
126127

python/paddle/fluid/layers/nn.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ def crf_decoding(input, param_attr, label=None):
806806
label(${label_type}): ${label_comment}
807807
808808
Returns:
809-
${viterbi_path_comment}
809+
Variable: ${viterbi_path_comment}
810810
"""
811811
helper = LayerHelper('crf_decoding', **locals())
812812
transition = helper.get_parameter(param_attr.name)
@@ -828,7 +828,7 @@ def cos_sim(X, Y):
828828
829829
Args:
830830
X (Variable): ${x_comment}
831-
Y (Variable): ${x_comment}
831+
Y (Variable): ${y_comment}
832832
833833
Returns:
834834
Variable: the output of cosine(X, Y).
@@ -1036,9 +1036,9 @@ def chunk_eval(input,
10361036
excluded_chunk_types (list): ${excluded_chunk_types_comment}
10371037
10381038
Returns:
1039-
tuple: tuple containing: (precision, recall, f1_score,
1040-
num_infer_chunks, num_label_chunks,
1041-
num_correct_chunks)
1039+
tuple: tuple containing: precision, recall, f1_score,
1040+
num_infer_chunks, num_label_chunks,
1041+
num_correct_chunks
10421042
"""
10431043
helper = LayerHelper("chunk_eval", **locals())
10441044

@@ -3050,8 +3050,6 @@ def nce(input,
30503050

30513051
def transpose(x, perm, name=None):
30523052
"""
3053-
**transpose Layer**
3054-
30553053
Permute the dimensions of `input` according to `perm`.
30563054
30573055
The `i`-th dimension of the returned tensor will correspond to the
@@ -3918,7 +3916,7 @@ def roi_pool(input, rois, pooled_height=1, pooled_width=1, spatial_scale=1.0):
39183916
spatial_scale (float): ${spatial_scale_comment} Default: 1.0
39193917
39203918
Returns:
3921-
roi_pool (Variable): ${out_comment}.
3919+
Variable: ${out_comment}.
39223920
39233921
Examples:
39243922
.. code-block:: python

0 commit comments

Comments
 (0)