Skip to content

Commit d498d93

Browse files
committed
Fix comments and remove param_attr
1 parent 1ee3086 commit d498d93

File tree

1 file changed

+8
-10
lines changed
  • python/paddle/v2/fluid/layers

1 file changed

+8
-10
lines changed

python/paddle/v2/fluid/layers/nn.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2286,17 +2286,15 @@ def transpose(x, perm, name=None):
22862286
return out
22872287

22882288

2289-
def im2sequence(input,
2290-
filter_size=1,
2291-
stride=1,
2292-
padding=0,
2293-
name=None,
2294-
layer_attr=None):
2289+
def im2sequence(input, filter_size=1, stride=1, padding=0, name=None):
22952290
"""
2296-
This op use filter to scan images and convert these images to sequences.
2297-
After expanding, the number of time step are output_height * output_width
2298-
for an image, in which output_height and output_width are calculated
2299-
by below equation:
2291+
Extracts image patches from the input tensor to form a tensor of shape
2292+
{input.batch_size * output_height * output_width, filter_size_H *
2293+
filter_size_W * input.channels} which is similar with im2col.
2294+
This op use filter / kernel to scan images and convert these images to
2295+
sequences. After expanding, the number of time step are
2296+
output_height * output_width for an image, in which output_height and
2297+
output_width are calculated by below equation:
23002298
23012299
.. math::
23022300

0 commit comments

Comments
 (0)