def output_func(self, input):
return conv.conv2d(input, self.W, border_mode='valid',
filter_shape=self.filter_shape,
image_shape=self.input_shape)
# def Conv2dMaxPool(rng, filter_shape, activation):
# conv = Conv2dLayer(rng, filter_shape)
# nonlinearity = NonLinearityLayer(activation=activation)
# pooling = MaxPoolLayer()
# layer = FeedForwardNet(layers=[])
# return layer
评论列表
文章目录