Skip to content

Commit 9d65011

Browse files
committed
Rename 'block_expand' to 'im2sequence'
1 parent 11b4471 commit 9d65011

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

doc/api/v2/fluid/layers.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ swish
494494
.. autofunction:: paddle.v2.fluid.layers.swish
495495
:noindex:
496496

497-
block_expand
497+
im2sequence
498498
------
499-
.. autofunction:: paddle.v2.fluid.layers.block_expand
499+
.. autofunction:: paddle.v2.fluid.layers.im2sequence
500500
:noindex:

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
'sequence_last_step',
5151
'dropout',
5252
'split',
53-
'block_expand',
53+
'im2sequence',
5454
]
5555

5656

@@ -1600,15 +1600,15 @@ def split(input, num_or_sections, dim=-1):
16001600
return outs
16011601

16021602

1603-
def block_expand(input,
1604-
block_x=1,
1605-
block_y=1,
1606-
stride_x=1,
1607-
stride_y=1,
1608-
padding_x=0,
1609-
padding_y=0,
1610-
name=None,
1611-
layer_attr=None):
1603+
def im2sequence(input,
1604+
block_x=1,
1605+
block_y=1,
1606+
stride_x=1,
1607+
stride_y=1,
1608+
padding_x=0,
1609+
padding_y=0,
1610+
name=None,
1611+
layer_attr=None):
16121612
"""
16131613
This op use block to scan images and convert these images to sequences.
16141614
After expanding, the number of time step are output_height * output_width
@@ -1696,13 +1696,13 @@ def block_expand(input,
16961696
16971697
.. code-block:: python
16981698
1699-
output = fluid.layers.block_expand(input=layer, stride_x=1, stride_y=1, block_x=2, block_y=2)
1699+
output = fluid.layers.im2sequence(input=layer, stride_x=1, stride_y=1, block_x=2, block_y=2)
17001700
17011701
"""
1702-
helper = LayerHelper('block_expand', **locals())
1702+
helper = LayerHelper('im2sequence', **locals())
17031703
out = helper.create_tmp_variable(dtype=helper.input_dtype())
17041704
helper.append_op(
1705-
type='block_expand',
1705+
type='im2sequence',
17061706
inputs={'X': input},
17071707
outputs={'Out': out},
17081708
attrs={

0 commit comments

Comments
 (0)