Fix matlab tailing dimension 1 issue for shape match
authorRonghang Hu <huronghang@hotmail.com>
Wed, 27 May 2015 04:37:20 +0000 (12:37 +0800)
committerRonghang Hu <huronghang@hotmail.com>
Fri, 29 May 2015 05:21:25 +0000 (13:21 +0800)
commita53df9892c49758bfee1de3455054dec9fc6dbdb
treee733495b3a7b6c7d62b836e172f722ec891f2039
parentee0c93137472981554ad30a766a1542cf155bf7b
Fix matlab tailing dimension 1 issue for shape match

Matlab cannot have tailing dimension 1 for ndim > 2, so you
cannot create 20 x 10 x 1 x 1 array in matlab as it becomes 20 x 10.
Extend matlab arrays to have tailing dimension 1 during shape match.
14 files changed:
matlab/+caffe/+test/test_net.m
matlab/+caffe/+test/test_solver.m
matlab/+caffe/Blob.m
matlab/+caffe/get_net.m
matlab/+caffe/get_solver.m
matlab/+caffe/io.m
matlab/+caffe/private/CHECK.m
matlab/+caffe/private/CHECK_FILE_EXIST.m
matlab/+caffe/private/is_valid_handle.m
matlab/+caffe/reset.m
matlab/+caffe/run_tests.m
matlab/+caffe/set_device.m
matlab/+caffe/set_mode_cpu.m
matlab/+caffe/set_mode_gpu.m