projects
/
platform
/
upstream
/
caffe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac6d4b6
)
[pycaffe,build] include Python first in caffe tool
author
Evan Shelhamer
<shelhamer@imaginarynumber.net>
Thu, 6 Aug 2015 20:03:50 +0000
(13:03 -0700)
committer
Evan Shelhamer
<shelhamer@imaginarynumber.net>
Thu, 6 Aug 2015 20:03:50 +0000
(13:03 -0700)
tools/caffe.cpp
patch
|
blob
|
history
diff --git
a/tools/caffe.cpp
b/tools/caffe.cpp
index
9de3abd
..
46f9959
100644
(file)
--- 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;