Fix segfault.
authorRob Hess <hess@yahoo-inc.com>
Thu, 3 Apr 2014 00:50:18 +0000 (17:50 -0700)
committerRob Hess <hess@yahoo-inc.com>
Thu, 3 Apr 2014 00:50:18 +0000 (17:50 -0700)
python/caffe/_caffe.cpp

index 1dbbbc0..257c3d9 100644 (file)
@@ -321,5 +321,6 @@ BOOST_PYTHON_MODULE(_caffe) {
   boost::python::class_<vector<CaffeLayer> >("LayerVec")
       .def(vector_indexing_suite<vector<CaffeLayer>, true>());
 
+  Py_Initialize();
   import_array();
 }