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:
3ff0ddf
)
[pycaffe] enable numpy API deprecation warnings
author
Jonathan L Long
<jonlong@cs.berkeley.edu>
Tue, 6 Jan 2015 06:19:20 +0000
(22:19 -0800)
committer
Jonathan L Long
<jonlong@cs.berkeley.edu>
Tue, 17 Feb 2015 06:45:21 +0000
(22:45 -0800)
python/caffe/_caffe.cpp
patch
|
blob
|
history
diff --git
a/python/caffe/_caffe.cpp
b/python/caffe/_caffe.cpp
index
e576eeb
..
7691d78
100644
(file)
--- a/
python/caffe/_caffe.cpp
+++ b/
python/caffe/_caffe.cpp
@@
-4,6
+4,9
@@
#include <Python.h> // NOLINT(build/include_alpha)
+// Produce deprecation warnings (needs to come before arrayobject.h inclusion).
+#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
+
#include <boost/make_shared.hpp>
#include <boost/python/suite/indexing/vector_indexing_suite.hpp>