Caffe2 - C++ API
A deep learning, cross platform ML framework
object_ptr.cpp
1 #include <torch/csrc/utils/object_ptr.h>
2 
3 #include <torch/csrc/python_headers.h>
4 
5 template<>
7  if (ptr)
8  Py_DECREF(ptr);
9 }
10 
11 template class THPPointer<PyObject>;