提交 81a13dcd authored 作者: Iban Harlouchet's avatar Iban Harlouchet

numpydoc for theano/tensor/signal/conv.py

上级 7e822dbb
""" """
Contains a wrapper function for tensor.nnet.ConvOp, which can be used to perform Contains a wrapper function for tensor.nnet.ConvOp, which can be used to perform
generic 2D convolution. generic 2D convolution.
"""
"""
__docformat__ = "restructuredtext en" __docformat__ = "restructuredtext en"
import warnings import warnings
...@@ -25,20 +25,29 @@ def conv2d(input, filters, image_shape=None, filter_shape=None, ...@@ -25,20 +25,29 @@ def conv2d(input, filters, image_shape=None, filter_shape=None,
Shape parameters are optional and will result in faster execution. Shape parameters are optional and will result in faster execution.
:type input: dmatrix of dtensor3 Parameters
:param input: symbolic variable for images to be filtered ----------
:type filters: dmatrix of dtensor3 input : dmatrix of dtensor3
:param filters: symbolic variable containing filter values Symbolic variable for images to be filtered.
:param border_mode: 'valid' or 'full'. see scipy.signal.convolve2d filters : dmatrix of dtensor3
:param subsample: factor by which to subsample output Symbolic variable containing filter values.
:type image_shape: tuple of length 2 or 3 border_mode: {'valid', 'full'}
:param image_shape: ([number images,] image height, image width) See scipy.signal.convolve2d.
:type filter_shape: tuple of length 2 or 3 subsample
:param filter_shape: ([number filters,] filter height, filter width) Factor by which to subsample output.
:param kwargs: see theano.tensor.nnet.conv.conv2d image_shape : tuple of length 2 or 3
:rtype: symbolic 2D,3D or 4D tensor ([number images,] image height, image width).
:return: tensor of filtered images, with shape filter_shape : tuple of length 2 or 3
([number images,] [number filters,] image height, image width) ([number filters,] filter height, filter width).
kwargs
See theano.tensor.nnet.conv.conv2d.
Returns
-------
symbolic 2D,3D or 4D tensor
Tensor of filtered images, with shape
([number images,] [number filters,] image height, image width).
""" """
assert input.ndim in (2, 3) assert input.ndim in (2, 3)
assert filters.ndim in (2, 3) assert filters.ndim in (2, 3)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论