Caffe2 - C++ API
A deep learning, cross platform ML framework
stub.cpp
1 #include <Python.h>
2 
3 #ifdef _WIN32
4 __declspec(dllimport)
5 #endif
6 extern PyObject* initModule();
7 
8 #if PY_MAJOR_VERSION == 2
9 PyMODINIT_FUNC init_C()
10 {
11  initModule();
12 }
13 #else
14 PyMODINIT_FUNC PyInit__C()
15 {
16  return initModule();
17 }
18 #endif