summaryrefslogtreecommitdiff
path: root/tools/caffe.cpp
diff options
context:
space:
mode:
authorEvan Shelhamer <shelhamer@imaginarynumber.net>2015-08-06 13:03:50 -0700
committerEvan Shelhamer <shelhamer@imaginarynumber.net>2015-08-06 13:03:50 -0700
commitd958b5a45c95db4f4e90abda29b69d5bfed2ef07 (patch)
tree7f6c9fd55de02c0c7d20477b4a4ffed393ba86ed /tools/caffe.cpp
parentac6d4b67c2307cae58a98077982d662773492b7c (diff)
downloadcaffeonacl-d958b5a45c95db4f4e90abda29b69d5bfed2ef07.tar.gz
caffeonacl-d958b5a45c95db4f4e90abda29b69d5bfed2ef07.tar.bz2
caffeonacl-d958b5a45c95db4f4e90abda29b69d5bfed2ef07.zip
[pycaffe,build] include Python first in caffe tool
Diffstat (limited to 'tools/caffe.cpp')
-rw-r--r--tools/caffe.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/caffe.cpp b/tools/caffe.cpp
index 9de3abdc..46f99594 100644
--- a/tools/caffe.cpp
+++ b/tools/caffe.cpp
@@ -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;