mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 00:21:07 +01:00
12 lines
200 B
C++
12 lines
200 B
C++
#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>;
|