Skip to content

Commit 27cc439

Browse files
Merge remote-tracking branch 'rasmus/master' into convnfix
Conflicts: tests/test_example_CNN.m
2 parents ff3b530 + 202808a commit 27cc439

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CNN/cnnsetup.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
function net = cnnsetup(net, x, y)
2+
assert(exist('OCTAVE_VERSION')==0, 'CNNs does not work with Octave as there is a bug in the implementation of convolution in octave. See: http://savannah.gnu.org/bugs/?39314');
23
inputmaps = 1;
34
mapsize = size(squeeze(x(:, :, 1)));
45

tests/test_example_CNN.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,17 @@
99
%% ex1 Train a 6c-2s-12c-2s Convolutional neural network
1010
%will run 1 epoch in about 200 second and get around 11% error.
1111
%With 100 epochs you'll get around 1.2% error
12+
<<<<<<< HEAD
1213

1314
if !isOctave()
1415
rng(0)
1516
else
1617
rand('state',0)
1718
end
1819

20+
=======
21+
rand('state',0)
22+
>>>>>>> rasmus/master
1923
cnn.layers = {
2024
struct('type', 'i') %input layer
2125
struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer

0 commit comments

Comments
 (0)