Note
Two similar implementation exists for conv2d: theano.tensor.signal.conv.conv2d and theano.tensor.nnet.conv.conv2d. The foremer implements a traditional 2D convolution, while the latter implements the convolutional layers present in convolutional neural networks (where filters are 3D and pool over several input channels).
Platforms: Unix, Windows
signal.conv.conv2d performs a basic 2D convolution of the input with the given filters. The input parameter can be a single 2D image or a 3D tensor, containing a set of images. Similarly, filters can be a single 2D filter or a 3D tensor, corresponding to a set of 2D filters.
Shape parameters are optional and will result in faster execution.
| Parameters: |
|
|---|---|
| Return type: | symbolic 2D,3D or 4D tensor |
| Returns: | tensor of filtered images, with shape ([number images,] [number filters,] image height, image width) |