Convolution Layers

class npdl.layers.Convolution(nb_filter, filter_size, input_shape=None, stride=1, init='glorot_uniform', activation='relu')[source]

Convolution operator for filtering windows of two-dimensional inputs.

When using this layer as the first layer in a model, provide the keyword argument input_shape (tuple of integers, does not include the sample axis), e.g. input_shape=(3, 128, 128) for 128x128 RGB pictures.