Skip to content

Commit ff6939b

Browse files
committed
Finish passing to new conv2d interface
1 parent 57a80fd commit ff6939b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

code/convolutional_mlp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def __init__(self, rng, input, filter_shape, image_shape, poolsize=(2, 2)):
9494
input=input,
9595
filters=self.W,
9696
filter_shape=filter_shape,
97-
image_shape=image_shape
97+
input_shape=image_shape
9898
)
9999

100100
# downsample each feature map individually, using maxpooling

doc/lenet.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ one of Figure 1. The input consists of 3 features maps (an RGB color image) of s
196196

197197
import theano
198198
from theano import tensor as T
199-
from theano.tensor.nnet import conv
199+
from theano.tensor.nnet import conv2d
200200

201201
import numpy
202202

@@ -226,7 +226,7 @@ one of Figure 1. The input consists of 3 features maps (an RGB color image) of s
226226
dtype=input.dtype), name ='b')
227227

228228
# build symbolic expression that computes the convolution of input with filters in w
229-
conv_out = conv.conv2d(input, W)
229+
conv_out = conv2d(input, W)
230230

231231
# build symbolic expression to add bias and apply activation function, i.e. produce neural net layer output
232232
# A few words on ``dimshuffle`` :
@@ -404,7 +404,7 @@ to be compatible with our previous MLP implementation.
404404
Note that the term "convolution" could corresponds to different mathematical operations:
405405

406406
1. `theano.tensor.nnet.conv2d
407-
<http://deeplearning.net/software/theano/library/tensor/nnet/conv.html#theano.tensor.nnet.conv.conv2d>`_,
407+
<http://deeplearning.net/software/theano/library/tensor/nnet/conv.html#theano.tensor.nnet.conv2d>`_,
408408
which is the most common one in almost all of the recent published
409409
convolutional models.
410410
In this operation, each output feature map is connected to each

0 commit comments

Comments
 (0)