From d498d93cf95a914e1db04d507e9a6c6e4e57f4f1 Mon Sep 17 00:00:00 2001 From: wanghaoshuang Date: Tue, 23 Jan 2018 16:13:22 +0800 Subject: [PATCH] Fix comments and remove param_attr --- python/paddle/v2/fluid/layers/nn.py | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/python/paddle/v2/fluid/layers/nn.py b/python/paddle/v2/fluid/layers/nn.py index 99ef6932c9f..aaca093d1f6 100644 --- a/python/paddle/v2/fluid/layers/nn.py +++ b/python/paddle/v2/fluid/layers/nn.py @@ -2286,17 +2286,15 @@ def transpose(x, perm, name=None): return out -def im2sequence(input, - filter_size=1, - stride=1, - padding=0, - name=None, - layer_attr=None): +def im2sequence(input, filter_size=1, stride=1, padding=0, name=None): """ - This op use filter to scan images and convert these images to sequences. - After expanding, the number of time step are output_height * output_width - for an image, in which output_height and output_width are calculated - by below equation: + Extracts image patches from the input tensor to form a tensor of shape + {input.batch_size * output_height * output_width, filter_size_H * + filter_size_W * input.channels} which is similar with im2col. + This op use filter / kernel to scan images and convert these images to + sequences. After expanding, the number of time step are + output_height * output_width for an image, in which output_height and + output_width are calculated by below equation: .. math:: -- GitLab