add necessary input checks for matcaffe
Merge branch 'matcaffe-add-check' into spp-dev