diff options
author | Alessandro Giusti <lalelale@users.noreply.github.com> | 2015-10-13 14:30:45 +0200 |
---|---|---|
committer | Alessandro Giusti <lalelale@users.noreply.github.com> | 2015-10-13 14:30:45 +0200 |
commit | ec94055a6c5f0f86b88f98f1659cc9f317df2e3e (patch) | |
tree | 2b3bc772bcc687f56561121f22cd0f5119e689e1 /matlab | |
parent | 0151742509c23b927b0159230ac70399ac4f8967 (diff) | |
download | caffe-ec94055a6c5f0f86b88f98f1659cc9f317df2e3e.tar.gz caffe-ec94055a6c5f0f86b88f98f1659cc9f317df2e3e.tar.bz2 caffe-ec94055a6c5f0f86b88f98f1659cc9f317df2e3e.zip |
Update store2hdf5.m
Fixed a bug in two assertions (the condition input argument must be a scalar logical)
Diffstat (limited to 'matlab')
-rw-r--r-- | matlab/hdf5creation/store2hdf5.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/matlab/hdf5creation/store2hdf5.m b/matlab/hdf5creation/store2hdf5.m index 0a0016dc..4e8c81d9 100644 --- a/matlab/hdf5creation/store2hdf5.m +++ b/matlab/hdf5creation/store2hdf5.m @@ -39,8 +39,8 @@ function [curr_dat_sz, curr_lab_sz] = store2hdf5(filename, data, labels, create, info=h5info(filename); prev_dat_sz=info.Datasets(1).Dataspace.Size; prev_lab_sz=info.Datasets(2).Dataspace.Size; - assert(prev_dat_sz(1:end-1)==dat_dims(1:end-1), 'Data dimensions must match existing dimensions in dataset'); - assert(prev_lab_sz(1:end-1)==lab_dims(1:end-1), 'Label dimensions must match existing dimensions in dataset'); + assert(all(prev_dat_sz(1:end-1)==dat_dims(1:end-1)), 'Data dimensions must match existing dimensions in dataset'); + assert(all(prev_lab_sz(1:end-1)==lab_dims(1:end-1)), 'Label dimensions must match existing dimensions in dataset'); startloc.dat=[ones(1,length(dat_dims)-1), prev_dat_sz(end)+1]; startloc.lab=[ones(1,length(lab_dims)-1), prev_lab_sz(end)+1]; end |