Skip to content

Commit 825b6cd

Browse files
Indentation.
1 parent 6c7720d commit 825b6cd

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

CNN/cnnbp.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@
4242
for j = 1 : numel(net.layers{l}.a)
4343
for i = 1 : numel(net.layers{l - 1}.a)
4444
%ugly if, until convn() is fixed in Octave.
45-
if(isOctave())
45+
if(isOctave())
4646
net.layers{l}.dk{i}{j} = convn_valid(flipall(net.layers{l - 1}.a{i}), net.layers{l}.d{j}) / size(net.layers{l}.d{j}, 3);
47-
else
48-
net.layers{l}.dk{i}{j} = convn(flipall(net.layers{l - 1}.a{i}), net.layers{l}.d{j}, 'valid') / size(net.layers{l}.d{j}, 3);
47+
else
48+
net.layers{l}.dk{i}{j} = convn(flipall(net.layers{l - 1}.a{i}), net.layers{l}.d{j}, 'valid') / size(net.layers{l}.d{j}, 3);
4949
end
5050
end
5151
net.layers{l}.db{j} = sum(net.layers{l}.d{j}(:)) / size(net.layers{l}.d{j}, 3);

CNN/cnnsetup.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
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');
32
inputmaps = 1;
43
mapsize = size(squeeze(x(:, :, 1)));
54

0 commit comments

Comments
 (0)