Skip to content
This repository was archived by the owner on Aug 17, 2018. It is now read-only.

Commit c083531

Browse files
Merge pull request rasmusbergpalm#80 from OliverObst/matlab-fix
fixed a small bug for Matlab calling undefined OCTAVE_VERSION for conv n...
2 parents 828d709 + 7c23709 commit c083531

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CNN/cnnsetup.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function net = cnnsetup(net, x, y)
2-
assert(~isOctave() || compare_versions(OCTAVE_VERSION, '3.8.0', '>='), ['Octave 3.8.0 or greater is required for CNNs as there is a bug in convolution in previous versions. See http://savannah.gnu.org/bugs/?39314. Your version is ' OCTAVE_VERSION]);
2+
assert(~isOctave() || compare_versions(OCTAVE_VERSION, '3.8.0', '>='), ['Octave 3.8.0 or greater is required for CNNs as there is a bug in convolution in previous versions. See http://savannah.gnu.org/bugs/?39314. Your version is ' myOctaveVersion]);
33
inputmaps = 1;
44
mapsize = size(squeeze(x(:, :, 1)));
55

util/myOctaveVersion.m

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
% return OCTAVE_VERSION or 'undefined' as a string
2+
function result = myOctaveVersion()
3+
if isOctave()
4+
result = OCTAVE_VERSION;
5+
else
6+
result = 'undefined';
7+
end

0 commit comments

Comments
 (0)