提交 03148804 编写于 作者: L Luo Tao

remove usused arguments for maxout_layer, refine notes for pad_layer

上级 ed808f5e
...@@ -3677,26 +3677,27 @@ def pad_layer(input, ...@@ -3677,26 +3677,27 @@ def pad_layer(input,
For example, For example,
.. code-block:: .. code-block:: python
input(2,2,2,3) = [ input(2,2,2,3) = [
[ [[1,2,3], [3,4,5]], [ [[1,2,3], [3,4,5]],
[[2,3,5], [1,6,7]] ], [[2,3,5], [1,6,7]] ],
[ [[4,3,1], [1,8,7]], [ [[4,3,1], [1,8,7]],
[[3,8,9], [2,3,5]] ] [[3,8,9], [2,3,5]] ]
] ]
pad_c=[1,1], pad_h=[0,0], pad_w=[0,0] pad_c=[1,1], pad_h=[0,0], pad_w=[0,0]
output(2,4,2,3) = [
[ [[0,0,0], [0,0,0]], output(2,4,2,3) = [
[[1,2,3], [3,4,5]], [ [[0,0,0], [0,0,0]],
[[2,3,5], [1,6,7]], [[1,2,3], [3,4,5]],
[[0,0,0], [0,0,0]] ], [[2,3,5], [1,6,7]],
[ [[0,0,0], [0,0,0]], [[0,0,0], [0,0,0]] ],
[[4,3,1], [1,8,7]], [ [[0,0,0], [0,0,0]],
[[3,8,9], [2,3,5]], [[4,3,1], [1,8,7]],
[[0,0,0], [0,0,0]] ] [[3,8,9], [2,3,5]],
] [[0,0,0], [0,0,0]] ]
]
The simply usage is: The simply usage is:
...@@ -4191,13 +4192,7 @@ def block_expand_layer(input, ...@@ -4191,13 +4192,7 @@ def block_expand_layer(input,
@wrap_name_default() @wrap_name_default()
@layer_support() @layer_support()
def maxout_layer(input, def maxout_layer(input, groups, num_channels=None, name=None, layer_attr=None):
groups,
num_channels=None,
size_x=None,
size_y=None,
name=None,
layer_attr=None):
""" """
A layer to do max out on conv layer output. A layer to do max out on conv layer output.
- Input: output of a conv layer. - Input: output of a conv layer.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册