output INFO from caffe cli to stderr by default
authorEvan Shelhamer <shelhamer@imaginarynumber.net>
Thu, 7 Aug 2014 03:10:27 +0000 (20:10 -0700)
committerEvan Shelhamer <shelhamer@imaginarynumber.net>
Thu, 7 Aug 2014 06:44:49 +0000 (23:44 -0700)
tools/caffe.cpp

index 26db178..b201f8e 100644 (file)
@@ -171,6 +171,9 @@ int time() {
 RegisterBrewFunction(time);
 
 int main(int argc, char** argv) {
+  // Print output to stderr (while still logging).
+  FLAGS_alsologtostderr = 1;
+
   caffe::GlobalInit(&argc, &argv);
   CHECK_EQ(argc, 2);
   return GetBrewFunction(caffe::string(argv[1]))();