#include #include #include template <> void THPPointer::free() { if (ptr && C10_LIKELY(Py_IsInitialized())) Py_DECREF(ptr); } template class THPPointer; template <> void THPPointer::free() { if (ptr && C10_LIKELY(Py_IsInitialized())) Py_DECREF(ptr); } template class THPPointer; template <> void THPPointer::free() { if (ptr && C10_LIKELY(Py_IsInitialized())) Py_DECREF(ptr); } template class THPPointer;