Skip to content

Commit ff602c9

Browse files
committed
add borrow parameter.
1 parent 825104d commit ff602c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

code/convolutional_mlp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def __init__(self, rng, input, filter_shape, image_shape, poolsize=(2, 2)):
8383

8484
# the bias is a 1D tensor -- one bias per output feature map
8585
b_values = numpy.zeros((filter_shape[0],), dtype=theano.config.floatX)
86-
self.b = theano.shared(value=b_values)
86+
self.b = theano.shared(value=b_values, borrow=True)
8787

8888
# convolve input feature maps with filters
8989
conv_out = conv.conv2d(input=input, filters=self.W,

0 commit comments

Comments
 (0)