提交 98badb64 authored 作者: Frederic's avatar Frederic

better docstring

上级 690978de
...@@ -63,9 +63,10 @@ def max_pool_2d(input, ds, ignore_border=False, st=None, padding=(0, 0), ...@@ -63,9 +63,10 @@ def max_pool_2d(input, ds, ignore_border=False, st=None, padding=(0, 0),
of the images, pad_h is the size of the top and bottom margins, of the images, pad_h is the size of the top and bottom margins,
and pad_w is the size of the left and right margins. and pad_w is the size of the left and right margins.
:type padding: tuple of two ints :type padding: tuple of two ints
:param mode: 'max', 'average_inc_pad' or 'average_exc_pad', :param mode: 'max', 'average_inc_pad' or 'average_exc_pad'.
the operation executed on each window. The max always exclude the Operation executed on each window. `max` always excludes the padding
padding in the computation of the max. For average, you have the choise. in the computation. `average` gives you the choice to include or
exclude it.
:type mode: string :type mode: string
""" """
if input.ndim < 2: if input.ndim < 2:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论