Refactor autograd package to separate Python dependencies. (#662)

The core autograd Variable, Function, and Engine no longer depend on the
Python API. This let's us implement functions in C++. In the future, we
can also multithread engine and release the GIL for most of the
non-Python backwards.
This commit is contained in:
Sam Gross
2017-02-13 16:00:16 -08:00
committed by GitHub
parent 16d2c3d7b3
commit bd5303010d
44 changed files with 2962 additions and 1759 deletions

View File

@ -577,11 +577,4 @@ void THPPointer<THPGenerator>::free() {
Py_DECREF(ptr);
}
template<>
void THPPointer<PyObject>::free() {
if (ptr)
Py_DECREF(ptr);
}
template class THPPointer<THPGenerator>;
template class THPPointer<PyObject>;