[pycaffe,build] include Python first in caffe tool
authorEvan Shelhamer <shelhamer@imaginarynumber.net>
Thu, 6 Aug 2015 20:03:50 +0000 (13:03 -0700)
committerEvan Shelhamer <shelhamer@imaginarynumber.net>
Thu, 6 Aug 2015 20:03:50 +0000 (13:03 -0700)
tools/caffe.cpp

index 9de3abd..46f9959 100644 (file)
@@ -1,3 +1,8 @@
+#ifdef WITH_PYTHON_LAYER
+#include "boost/python.hpp"
+namespace bp = boost::python;
+#endif
+
 #include <glog/logging.h>
 
 #include <cstring>
@@ -8,11 +13,6 @@
 #include "boost/algorithm/string.hpp"
 #include "caffe/caffe.hpp"
 
-#ifdef WITH_PYTHON_LAYER
-#include "boost/python.hpp"
-namespace bp = boost::python;
-#endif
-
 using caffe::Blob;
 using caffe::Caffe;
 using caffe::Net;