@@ -3677,26 +3677,27 @@ def pad_layer(input,
3677
3677
3678
3678
For example,
3679
3679
3680
- .. code-block::
3681
-
3682
- input(2,2,2,3) = [
3683
- [ [[1,2,3], [3,4,5]],
3684
- [[2,3,5], [1,6,7]] ],
3685
- [ [[4,3,1], [1,8,7]],
3686
- [[3,8,9], [2,3,5]] ]
3687
- ]
3688
-
3689
- pad_c=[1,1], pad_h=[0,0], pad_w=[0,0]
3690
- output(2,4,2,3) = [
3691
- [ [[0,0,0], [0,0,0]],
3692
- [[1,2,3], [3,4,5]],
3693
- [[2,3,5], [1,6,7]],
3694
- [[0,0,0], [0,0,0]] ],
3695
- [ [[0,0,0], [0,0,0]],
3696
- [[4,3,1], [1,8,7]],
3697
- [[3,8,9], [2,3,5]],
3698
- [[0,0,0], [0,0,0]] ]
3699
- ]
3680
+ .. code-block:: python
3681
+
3682
+ input(2,2,2,3) = [
3683
+ [ [[1,2,3], [3,4,5]],
3684
+ [[2,3,5], [1,6,7]] ],
3685
+ [ [[4,3,1], [1,8,7]],
3686
+ [[3,8,9], [2,3,5]] ]
3687
+ ]
3688
+
3689
+ pad_c=[1,1], pad_h=[0,0], pad_w=[0,0]
3690
+
3691
+ output(2,4,2,3) = [
3692
+ [ [[0,0,0], [0,0,0]],
3693
+ [[1,2,3], [3,4,5]],
3694
+ [[2,3,5], [1,6,7]],
3695
+ [[0,0,0], [0,0,0]] ],
3696
+ [ [[0,0,0], [0,0,0]],
3697
+ [[4,3,1], [1,8,7]],
3698
+ [[3,8,9], [2,3,5]],
3699
+ [[0,0,0], [0,0,0]] ]
3700
+ ]
3700
3701
3701
3702
The simply usage is:
3702
3703
@@ -4191,13 +4192,7 @@ def block_expand_layer(input,
4191
4192
4192
4193
@wrap_name_default ()
4193
4194
@layer_support ()
4194
- def maxout_layer (input ,
4195
- groups ,
4196
- num_channels = None ,
4197
- size_x = None ,
4198
- size_y = None ,
4199
- name = None ,
4200
- layer_attr = None ):
4195
+ def maxout_layer (input , groups , num_channels = None , name = None , layer_attr = None ):
4201
4196
"""
4202
4197
A layer to do max out on conv layer output.
4203
4198
- Input: output of a conv layer.
@@ -4227,12 +4222,6 @@ def maxout_layer(input,
4227
4222
:type num_channels: int|None
4228
4223
:param groups: The group number of input layer.
4229
4224
:type groups: int
4230
- :param size_x: conv output width. If None will be set
4231
- automatically from previous output.
4232
- :type size_x: int|None
4233
- :param size_y: conv output height. If None will be set
4234
- automatically from previous output.
4235
- :type size_y: int|None
4236
4225
:param name: The name of this layer, which can not specify.
4237
4226
:type name: None|basestring.
4238
4227
:param layer_attr: Extra Layer attribute.
0 commit comments