From 45565784bff06ced07829071a3be30dce5871c64 Mon Sep 17 00:00:00 2001 From: JiabinYang Date: Thu, 1 Nov 2018 08:45:53 +0000 Subject: [PATCH] test=develop --- python/paddle/fluid/layers/nn.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/python/paddle/fluid/layers/nn.py b/python/paddle/fluid/layers/nn.py index 90af75a24f8..69f0f8dc898 100644 --- a/python/paddle/fluid/layers/nn.py +++ b/python/paddle/fluid/layers/nn.py @@ -7506,9 +7506,16 @@ def space_to_depth(x, blocksize, name=None): space_to_depth is used to This operation is useful for resizing the activations between convolutions (but keeping all data) + - Non-overlapping blocks of size block_size x block size are rearranged into depth at each location. + - The depth of the output tensor is block_size * block_size * input channel + - The Y, X coordinates within each block of the input become the high order component of the output channel index + - channel should be divisible by square of blocksize + - height, width should be divsible by blocksize + + Args: x(variable): The input LoDtensor. - blocksize(variable): The blocksize to select the element on each feature map + blocksize(variable): The blocksize to select the element on each feature map should be > 2 Returns: Variable: The output LoDtensor. -- GitLab