From 88507032de1eb675539d91a1d79c221f3faf5d99 Mon Sep 17 00:00:00 2001 From: Rob Hess Date: Wed, 2 Apr 2014 17:50:18 -0700 Subject: [PATCH] Fix segfault. --- python/caffe/_caffe.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/python/caffe/_caffe.cpp b/python/caffe/_caffe.cpp index 1dbbbc0..257c3d9 100644 --- a/python/caffe/_caffe.cpp +++ b/python/caffe/_caffe.cpp @@ -321,5 +321,6 @@ BOOST_PYTHON_MODULE(_caffe) { boost::python::class_ >("LayerVec") .def(vector_indexing_suite, true>()); + Py_Initialize(); import_array(); } -- 2.7.4