#include "torch/csrc/utils/object_ptr.h" #include "torch/csrc/python_headers.h" template<> void THPPointer::free() { if (ptr) Py_DECREF(ptr); } template class THPPointer;