blob: 6498e0de0cc123e88602366adae10d6da1b364c0 [file] [log] [blame]
#include <torch/csrc/utils/object_ptr.h>
#include <torch/csrc/python_headers.h>
template <>
void THPPointer<PyObject>::free() {
if (ptr)
Py_DECREF(ptr);
}
template class THPPointer<PyObject>;
template <>
void THPPointer<PyCodeObject>::free() {
if (ptr)
Py_DECREF(ptr);
}
template class THPPointer<PyCodeObject>;
template <>
void THPPointer<PyFrameObject>::free() {
if (ptr)
Py_DECREF(ptr);
}
template class THPPointer<PyFrameObject>;