Skip to content

Commit 4556578

Browse files
committed
test=develop
1 parent 5825f09 commit 4556578

File tree

1 file changed

+8
-1
lines changed
  • python/paddle/fluid/layers

1 file changed

+8
-1
lines changed

python/paddle/fluid/layers/nn.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7506,9 +7506,16 @@ def space_to_depth(x, blocksize, name=None):
75067506
space_to_depth is used to This operation is useful for resizing the activations between convolutions
75077507
(but keeping all data)
75087508
7509+
- Non-overlapping blocks of size block_size x block size are rearranged into depth at each location.
7510+
- The depth of the output tensor is block_size * block_size * input channel
7511+
- The Y, X coordinates within each block of the input become the high order component of the output channel index
7512+
- channel should be divisible by square of blocksize
7513+
- height, width should be divsible by blocksize
7514+
7515+
75097516
Args:
75107517
x(variable): The input LoDtensor.
7511-
blocksize(variable): The blocksize to select the element on each feature map
7518+
blocksize(variable): The blocksize to select the element on each feature map should be > 2
75127519
75137520
Returns:
75147521
Variable: The output LoDtensor.

0 commit comments

Comments
 (0)