Skip to content

Commit 875d5af

Browse files
committed
Merge pull request lisa-lab#134 from abergeron/update_conv
Update convolution to use the updated interface.
2 parents 18a5e1a + 6e3d615 commit 875d5af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code/convolutional_mlp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import theano
3131
import theano.tensor as T
3232
from theano.tensor.signal import downsample
33-
from theano.tensor.nnet import conv
33+
from theano.tensor.nnet import conv2d
3434

3535
from logistic_sgd import LogisticRegression, load_data
3636
from mlp import HiddenLayer
@@ -87,7 +87,7 @@ def __init__(self, rng, input, filter_shape, image_shape, poolsize=(2, 2)):
8787
self.b = theano.shared(value=b_values, borrow=True)
8888

8989
# convolve input feature maps with filters
90-
conv_out = conv.conv2d(
90+
conv_out = conv2d(
9191
input=input,
9292
filters=self.W,
9393
filter_shape=filter_shape,

0 commit comments

Comments
 (0)