fixed matcaffe printout to specify num of args (now including train/test phase)
authorforresti <forresti@eecs.berkeley.edu>
Wed, 25 Feb 2015 00:51:56 +0000 (16:51 -0800)
committerEvan Shelhamer <shelhamer@imaginarynumber.net>
Wed, 25 Feb 2015 04:05:48 +0000 (20:05 -0800)
matlab/caffe/matcaffe.cpp

index 996d3d2..da37d92 100644 (file)
@@ -272,7 +272,7 @@ static void get_init_key(MEX_ARGS) {
 static void init(MEX_ARGS) {
   if (nrhs != 3) {
     ostringstream error_msg;
-    error_msg << "Expected 2 arguments, got " << nrhs;
+    error_msg << "Expected 3 arguments, got " << nrhs;
     mex_error(error_msg.str());
   }